# opentelemetry.baggage.propagation package

## Module contents

class opentelemetry.baggage.propagation.W3CBaggagePropagator

  Bases: `TextMapPropagator`

  Extracts and injects Baggage which is used to annotate telemetry.

  extract(carrier, context=None, getter=<opentelemetry.propagators.textmap.DefaultGetter object>)

    Extract Baggage from the carrier.

    See `opentelemetry.propagators.textmap.TextMapPropagator.extract`

    Return type:

      `Context`

  inject(carrier, context=None, setter=<opentelemetry.propagators.textmap.DefaultSetter object>)

    Injects Baggage into the carrier.

    See `opentelemetry.propagators.textmap.TextMapPropagator.inject`

    Return type:

      `None`

  property fields: Set[str]

    Returns a set with the fields set in `inject`.