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

1.0.0

Properties

createBaggage: (
    entries?: Record<string, @opentelemetry/api.BaggageEntry>,
) => @opentelemetry/api.Baggage

Type declaration

deleteBaggage: (
    context: @opentelemetry/api.Context,
) => @opentelemetry/api.Context

Type declaration

getActiveBaggage: () => undefined | @opentelemetry/api.Baggage

Type declaration

getBaggage: (
    context: @opentelemetry/api.Context,
) => undefined | @opentelemetry/api.Baggage

Type declaration

setBaggage: (
    context: @opentelemetry/api.Context,
    baggage: @opentelemetry/api.Baggage,
) => @opentelemetry/api.Context

Type declaration

Methods

  • Remove the global propagator

    Returns void

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

    Returns string[]