baggage_builder Module

Classes

BaggageBuilder

Per request baggage builder.

This class provides a fluent API for setting baggage values that will be propagated in the OpenTelemetry context.

Initialize the baggage builder.

BaggageScope

Context manager for baggage scope.

This class manages the lifecycle of baggage values, setting them on enter and restoring the previous context on exit.

Initialize the baggage scope.