Skip to content

Commit 80affa9

Browse files
authored
fix: align otel semconv with otel lib version (#270)
### Changes are visible to end-users: no ### Test plan - Manual testing; please provide instructions so we can reproduce: run cli with `ASPECT_OTEL_OUT=otel.log`
1 parent 39aeff6 commit 80affa9

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

pkg/telemetry/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ go_library(
88
deps = [
99
"@com_github_spf13_viper//:viper",
1010
"@io_opentelemetry_go_otel//:otel",
11-
"@io_opentelemetry_go_otel//semconv/v1.34.0:v1_34_0",
11+
"@io_opentelemetry_go_otel//semconv/v1.37.0:v1_37_0",
1212
"@io_opentelemetry_go_otel_exporters_stdout_stdouttrace//:stdouttrace",
1313
"@io_opentelemetry_go_otel_sdk//resource",
1414
"@io_opentelemetry_go_otel_sdk//trace",

pkg/telemetry/setup.go

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2023 Aspect Build Systems, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package telemetry
218

319
import (
@@ -8,7 +24,7 @@ import (
824
"go.opentelemetry.io/otel"
925
"go.opentelemetry.io/otel/sdk/resource"
1026
"go.opentelemetry.io/otel/sdk/trace"
11-
semconv "go.opentelemetry.io/otel/semconv/v1.34.0"
27+
semconv "go.opentelemetry.io/otel/semconv/v1.37.0"
1228

1329
"go.opentelemetry.io/otel/exporters/stdout/stdouttrace"
1430
)

0 commit comments

Comments
 (0)