BaggageScope Class

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.

Constructor

BaggageScope(pairs: dict[str, str])

Parameters

Name Description
pairs
Required

Dictionary of baggage key-value pairs to set