Documentation ¶
Overview ¶
Package baggage provides functionality for storing and retrieving baggage items in Go context. For propagating the baggage, see the go.opentelemetry.io/otel/propagation package.
This package is currently in a pre-GA phase. Backwards incompatible changes may be introduced in subsequent minor version releases as we work to track the evolving OpenTelemetry specification and user feedback.
Index ¶
- func ContextWithEmpty(parent context.Context) context.Context
- func ContextWithValues(parent context.Context, pairs ...attribute.KeyValue) context.Context
- func ContextWithoutValues(parent context.Context, keys ...attribute.Key) context.Context
- func Set(ctx context.Context) attribute.Set
- func Value(ctx context.Context, key attribute.Key) attribute.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithEmpty ¶
ContextWithEmpty returns a copy of parent without baggage.
func ContextWithValues ¶
ContextWithValues returns a copy of parent with pairs updated in the baggage.
func ContextWithoutValues ¶
ContextWithoutValues returns a copy of parent in which the values related to keys have been removed from the baggage.
Types ¶
This section is empty.