Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into fitzcache-semversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Aneurysm9 committed Aug 16, 2020
2 parents e8795e2 + df25cc0 commit 9bd1ebb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

- Top-level `Version()` and `SemVersion()` functions defining the current version of the contrib package. (#225)

<<<<<<< HEAD
### Changed

- Switch to use common top-level module `SemVersion()` when creating versioned tracer in `bradfitz/gomemcache`.
Expand All @@ -20,6 +21,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

- Update dependabot configuration to include newly added `bradfitz/gomemcache` package.

=======
>>>>>>> origin/master
## [0.10.1] - 2020-08-13

### Added
Expand Down
8 changes: 8 additions & 0 deletions contrib.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,20 @@
// limitations under the License.

// Package contrib contains common values used across all
<<<<<<< HEAD
// instrumentation, exporter, and detector contributions
=======
// instrumentation, exporter, and detector contributions.
>>>>>>> origin/master
package contrib // import "go.opentelemetry.io/contrib"

// Version is the current release version of OpenTelemetry Contrib in use.
func Version() string {
return "0.10.1"
<<<<<<< HEAD
=======
// This string is updated by the pre_release.sh script during release
>>>>>>> origin/master
}

// SemVersion is the semantic version to be supplied to tracer/meter creation.
Expand Down
4 changes: 4 additions & 0 deletions pre_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ else
fi

# Get version for contrib.go
<<<<<<< HEAD
OTEL_CONTRIB_VERSION=$(echo "${CONTRIB_TAG}" | grep -o '^v[0-9]\+\.[0-9]\+\.[0-9]\+')
=======
OTEL_CONTRIB_VERSION=$(echo "${CONTRIB_TAG}" | egrep -o "${SEMVER_REGEX}")
>>>>>>> origin/master
# Strip leading v
OTEL_CONTRIB_VERSION="${OTEL_CONTRIB_VERSION#v}"

Expand Down

0 comments on commit 9bd1ebb

Please sign in to comment.