1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-28 21:09:17 +02:00
opentelemetry-go/propagation/trace_context_example_test.go
2024-02-29 07:05:28 +01:00

16 lines
332 B
Go

// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
package propagation_test
import (
"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/propagation"
)
func ExampleTraceContext() {
tc := propagation.TraceContext{}
// Register the TraceContext propagator globally.
otel.SetTextMapPropagator(tc)
}