mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-12-28 21:09:17 +02:00
16 lines
332 B
Go
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)
|
|
}
|