From 2b2c26959fd7ec6999d5e679bb43a533419bd792 Mon Sep 17 00:00:00 2001 From: Anurag Mittal Date: Thu, 26 Dec 2024 17:50:43 +0100 Subject: [PATCH] change span name --- pkg/util/otel_middleware.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/otel_middleware.go b/pkg/util/otel_middleware.go index f3b4aa62..6851e378 100644 --- a/pkg/util/otel_middleware.go +++ b/pkg/util/otel_middleware.go @@ -20,7 +20,7 @@ func AttachOpenTelemetryMiddleware(stack *middleware.Stack, serviceName string) // Start a new span. tracer := otel.Tracer("github.com/scality/cosi-driver") - ctx, span := tracer.Start(ctx, operationName, trace.WithSpanKind(trace.SpanKindClient)) + ctx, span := tracer.Start(ctx, serviceName+"/"+operationName, trace.WithSpanKind(trace.SpanKindClient)) defer span.End() // Proceed with the AWS operation.