2021-08-09 07:19:24 +00:00
|
|
|
// Copyright The OpenTelemetry Authors
|
2024-08-19 08:01:33 +00:00
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
2021-08-09 07:19:24 +00:00
|
|
|
|
|
|
|
package otel // import "go.opentelemetry.io/otel"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"go.opentelemetry.io/otel/internal/global"
|
|
|
|
"go.opentelemetry.io/otel/propagation"
|
|
|
|
)
|
|
|
|
|
|
|
|
// GetTextMapPropagator returns the global TextMapPropagator. If none has been
|
|
|
|
// set, a No-Op TextMapPropagator is returned.
|
|
|
|
func GetTextMapPropagator() propagation.TextMapPropagator {
|
|
|
|
return global.TextMapPropagator()
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetTextMapPropagator sets propagator as the global TextMapPropagator.
|
|
|
|
func SetTextMapPropagator(propagator propagation.TextMapPropagator) {
|
|
|
|
global.SetTextMapPropagator(propagator)
|
|
|
|
}
|