Context manager for baggage scope.
Manages the lifecycle of baggage values, setting them in the OTel context and restoring the previous context when the scope ends.
Dispose is a no-op because OpenTelemetry JS automatically restores the previous context after context.with() completes.
context.with()
Manual cleanup alternative if caller isn't using using.
using
Execute a synchronous function under this baggage scope. Automatically restores previous context afterward.
Context manager for baggage scope.
Manages the lifecycle of baggage values, setting them in the OTel context and restoring the previous context when the scope ends.