logo
Expand description

Primitives for sending name/value data across system boundaries.

Baggage is used to annotate telemetry, adding context and information to metrics, traces, and logs. It is a set of name/value pairs describing user-defined properties. Each name in Baggage is associated with exactly one value.

Main types in this module are:

  • Baggage: A set of name/value pairs describing user-defined properties.
  • BaggageExt: Extensions for managing Baggage in a Context.

Baggage can be sent between systems using a baggage propagator in accordance with the W3C Baggage specification.

Structs

A set of name/value pairs describing user-defined properties.

An optional property set that can be added to Baggage values.

An iterator over the entries of a Baggage.

Baggage name/value pairs with their associated metadata.

Traits

Methods for sorting and retrieving baggage data in a context.