Skip to content

Commit

Permalink
change span name
Browse files Browse the repository at this point in the history
  • Loading branch information
anurag4DSB committed Dec 26, 2024
1 parent e9726e3 commit 2b2c269
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/otel_middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2b2c269

Please sign in to comment.