summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/tracing
diff options
context:
space:
mode:
Diffstat (limited to 'modules/caddyhttp/tracing')
-rw-r--r--modules/caddyhttp/tracing/tracer.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/caddyhttp/tracing/tracer.go b/modules/caddyhttp/tracing/tracer.go
index e5c5107..d113a56 100644
--- a/modules/caddyhttp/tracing/tracer.go
+++ b/modules/caddyhttp/tracing/tracer.go
@@ -13,7 +13,7 @@ import (
"go.opentelemetry.io/otel/propagation"
"go.opentelemetry.io/otel/sdk/resource"
sdktrace "go.opentelemetry.io/otel/sdk/trace"
- semconv "go.opentelemetry.io/otel/semconv/v1.7.0"
+ semconv "go.opentelemetry.io/otel/semconv/v1.17.0"
"go.uber.org/zap"
)
@@ -108,8 +108,8 @@ func (ot *openTelemetryWrapper) newResource(
webEngineVersion string,
) (*resource.Resource, error) {
return resource.Merge(resource.Default(), resource.NewSchemaless(
- semconv.WebEngineNameKey.String(webEngineName),
- semconv.WebEngineVersionKey.String(webEngineVersion),
+ semconv.WebEngineName(webEngineName),
+ semconv.WebEngineVersion(webEngineVersion),
))
}