Skip to content

Commit

Permalink
SetTextMapPropagator
Browse files Browse the repository at this point in the history
  • Loading branch information
clannadxr committed Jun 28, 2023
1 parent c942559 commit cb90e6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/etrace/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ var (
func SetGlobalTracer(tp trace.TracerProvider) {
globalTracer = registeredTracer{true}
otel.SetTracerProvider(tp)
otel.SetTextMapPropagator(propagation.NewCompositeTextMapPropagator(propagation.TraceContext{}, propagation.Baggage{}))
}

// IsGlobalTracerRegistered returns a `bool` to indicate if a tracer has been globally registered
Expand Down

0 comments on commit cb90e6f

Please sign in to comment.