Last active
February 8, 2023 23:18
-
-
Save yurishkuro/2b9b1e5f6baec34c21c66af0fc867a73 to your computer and use it in GitHub Desktop.
HotROD OTEL propagator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var once sync.Once | |
// Init initializes OpenTelemetry SDK and uses OTel-OpenTracing Bridge | |
// to return an OpenTracing-compatible tracer. | |
func Init(serviceName string, exporterType string, ...) opentracing.Tracer { | |
once.Do(func() { | |
propagation.NewCompositeTextMapPropagator( | |
propagation.TraceContext{}, | |
propagation.Baggage{}, | |
)) | |
}) | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment