Last active
February 8, 2023 23:18
-
-
Save yurishkuro/2b9b1e5f6baec34c21c66af0fc867a73 to your computer and use it in GitHub Desktop.
Revisions
-
yurishkuro revised this gist
Feb 8, 2023 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,10 @@ var once sync.Once // to return an OpenTracing-compatible tracer. func Init(serviceName string, exporterType string, ...) opentracing.Tracer { once.Do(func() { propagation.NewCompositeTextMapPropagator( propagation.TraceContext{}, propagation.Baggage{}, )) }) // ... } -
yurishkuro created this gist
Feb 7, 2023 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ 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() { otel.SetTextMapPropagator(propagation.TraceContext{}) }) // ... }