Skip to content

Commit

Permalink
Remove version
Browse files Browse the repository at this point in the history
  • Loading branch information
prestonvasquez committed Nov 13, 2024
1 parent d7f792f commit fd6c1f6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

const (
semconvOptIn = "OTEL_SEMCONV_STABILITY_OPT_IN"
semconvOptIn1260 = "mongo/v1.26.0"
semconvOptIn1260 = "mongo"
semconvOptInDup = "mongo/dup"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
}
Expand Down

0 comments on commit fd6c1f6

Please sign in to comment.