Singleton object which represents the entry point to the OpenTelemetry Propagation API

1.0.0

Properties

createBaggage: (entries?: Record<string, BaggageEntry>) => Baggage = createBaggage

Type declaration

    • (entries?: Record<string, BaggageEntry>): Baggage
    • Create a new Baggage with optional entries

      Parameters

      • entries: Record<string, BaggageEntry> = {}

        An array of baggage entries the new baggage should contain

      Returns Baggage

deleteBaggage: (context: Context) => Context = deleteBaggage

Type declaration

getActiveBaggage: () => undefined | Baggage = getActiveBaggage

Type declaration

    • (): undefined | Baggage
    • Retrieve the current baggage from the active/current context

      Returns undefined | Baggage

      Extracted baggage from the context

getBaggage: (context: Context) => undefined | Baggage = getBaggage

Type declaration

    • (context: Context): undefined | Baggage
    • Retrieve the current baggage from the given context

      Parameters

      Returns undefined | Baggage

      Extracted baggage from the context

setBaggage: (context: Context, baggage: Baggage) => Context = setBaggage

Type declaration

Methods

  • Return a list of all fields which may be used by the propagator.

    Returns string[]