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 8947977
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion contrib.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@
// limitations under the License.

// Package contrib contains common values used across all
// instrumentation, exporter, and detector contributions
// instrumentation, exporter, and detector contributions.
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"
// This string is updated by the pre_release.sh script during release
}

// SemVersion is the semantic version to be supplied to tracer/meter creation.
Expand Down
2 changes: 1 addition & 1 deletion pre_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ else
fi

# Get version for contrib.go
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}")
# Strip leading v
OTEL_CONTRIB_VERSION="${OTEL_CONTRIB_VERSION#v}"

Expand Down

0 comments on commit 8947977

Please sign in to comment.