From 273894e8e30eef0fb489afbe6dd4645a314f6ef9 Mon Sep 17 00:00:00 2001 From: DarthSim Date: Thu, 15 Dec 2022 01:23:05 +0600 Subject: [PATCH] Update semconv in OTel --- metrics/otel/otel.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metrics/otel/otel.go b/metrics/otel/otel.go index 3acc98be..444593fd 100644 --- a/metrics/otel/otel.go +++ b/metrics/otel/otel.go @@ -30,7 +30,7 @@ import ( sdkmetric "go.opentelemetry.io/otel/sdk/metric" "go.opentelemetry.io/otel/sdk/resource" sdktrace "go.opentelemetry.io/otel/sdk/trace" - semconv "go.opentelemetry.io/otel/semconv/v1.4.0" + semconv "go.opentelemetry.io/otel/semconv/v1.12.0" "go.opentelemetry.io/otel/trace" "google.golang.org/grpc" "google.golang.org/grpc/credentials" @@ -99,7 +99,7 @@ func Init() error { ) if awsRes != nil { - res, _ = resource.Merge(res, awsRes) + res, _ = resource.Merge(awsRes, res) } opts := []sdktrace.TracerProviderOption{