From b64c4cbf94e971453dd8e45e793f58f76221defc Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Thu, 28 Apr 2022 09:33:52 -0700 Subject: [PATCH] Add missing version.go files for AWS and consistent samplers --- samplers/aws/xray/version.go | 26 +++++++++++++++++++++ samplers/probability/consistent/version.go | 27 ++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 samplers/aws/xray/version.go create mode 100644 samplers/probability/consistent/version.go diff --git a/samplers/aws/xray/version.go b/samplers/aws/xray/version.go new file mode 100644 index 00000000000..4589a54c4bb --- /dev/null +++ b/samplers/aws/xray/version.go @@ -0,0 +1,26 @@ +// Copyright The OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package xray // import "go.opentelemetry.io/contrib/samplers/aws/xray" + +// Version is the current release version of the AWS XRay remote sampler. +func Version() string { + return "0.2.0" + // This string is updated by the pre_release.sh script during release +} + +// SemVersion is the semantic version to be supplied to tracer/meter creation. +func SemVersion() string { + return "semver:" + Version() +} diff --git a/samplers/probability/consistent/version.go b/samplers/probability/consistent/version.go new file mode 100644 index 00000000000..04afbe21f77 --- /dev/null +++ b/samplers/probability/consistent/version.go @@ -0,0 +1,27 @@ +// Copyright The OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package consistent // import "go.opentelemetry.io/contrib/samplers/probability/consistent" + +// Version is the current release version of the consistent probability +// sampler. +func Version() string { + return "0.2.0" + // This string is updated by the pre_release.sh script during release +} + +// SemVersion is the semantic version to be supplied to tracer/meter creation. +func SemVersion() string { + return "semver:" + Version() +}