From fd6c1f68878f5204e57ab2e5a205d4a8d38d5d97 Mon Sep 17 00:00:00 2001 From: Preston Vasquez Date: Wed, 13 Nov 2024 11:54:03 -0700 Subject: [PATCH] Remove version --- .../go.mongodb.org/mongo-driver/mongo/otelmongo/doc.go | 2 +- .../go.mongodb.org/mongo-driver/mongo/otelmongo/semconv.go | 2 +- .../mongo-driver/mongo/otelmongo/semconv_test.go | 4 ++-- .../mongo-driver/mongo/otelmongo/test/mongo_test.go | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/doc.go b/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/doc.go index 1f94122fa96..7e2ccc7d5b8 100644 --- a/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/doc.go +++ b/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/doc.go @@ -15,7 +15,7 @@ // // The "OTEL_SEMCONV_STABILITY_OPT_IN" environment variable can be used to opt // into semconv/v1.26.0: -// - "mongo/v1.26.0": emit v1.26.0 semantic conventions +// - "mongo": emit v1.26.0 semantic conventions // - "": emit v1.17.0 (default) semantic conventions // - "mongo/dup": emit v1.17.0 (default) and v1.26.0 // diff --git a/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/semconv.go b/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/semconv.go index 02e27ab68b9..4d6e369f7c7 100644 --- a/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/semconv.go +++ b/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/semconv.go @@ -10,7 +10,7 @@ import ( const ( semconvOptIn = "OTEL_SEMCONV_STABILITY_OPT_IN" - semconvOptIn1260 = "mongo/v1.26.0" + semconvOptIn1260 = "mongo" semconvOptInDup = "mongo/dup" ) diff --git a/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/semconv_test.go b/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/semconv_test.go index 5dcbe908a7d..93efdf43a48 100644 --- a/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/semconv_test.go +++ b/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/semconv_test.go @@ -61,9 +61,9 @@ func Test_appendOpNameAttrs(t *testing.T) { want: v1170, }, { - name: "mongo/v1.26.0", + name: "mongo", initAttrs: []attribute.KeyValue{}, - version: "mongo/v1.26.0", + version: "mongo", want: v1260, }, { diff --git a/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/test/mongo_test.go b/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/test/mongo_test.go index 15faab3c6fc..d0f4d3e974a 100644 --- a/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/test/mongo_test.go +++ b/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/test/mongo_test.go @@ -281,8 +281,8 @@ func TestSemanticConventionOptIn(t *testing.T) { assert: assertSemconv1170, }, { - name: "mongo/v1.26.0", - semconvOptIn: "mongo/v1.26.0", + name: "mongo", + semconvOptIn: "mongo", assert: assertSemconv1260, }, }