修复stream拦截器tracer名问题 (#944)

master
SunJun 3 years ago committed by GitHub
parent 280e837c9e
commit aa68210cde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -66,7 +66,7 @@ func StreamOpenTracingInterceptor() grpc.StreamClientInterceptor {
requestMetadata, _ := metadata.FromOutgoingContext(ctx)
metadataCopy := requestMetadata.Copy()
tr := otel.Tracer("ecoplants")
tr := otel.Tracer(opentelemetry.TraceName)
name, attr := opentelemetry.SpanInfo(method, cc.Target())
var span trace.Span

Loading…
Cancel
Save