OpenTelemetry SDK
    Preparing search index...

    Propagates SpanContext through Trace Context format propagation. {trace-id}:{span-id}:{parent-span-id}:{flags} {trace-id} 64-bit or 128-bit random number in base16 format. Can be variable length, shorter values are 0-padded on the left. Value of 0 is invalid. {span-id} 64-bit random number in base16 format. {parent-span-id} Set to 0 because this field is deprecated. {flags} One byte bitmap, as two hex digits. Inspired by jaeger-client-node project.

    Use W3CTraceContextPropagator from @opentelemetry/core instead. The Jaeger propagator is deprecated by the OpenTelemetry specification. This package will be removed in a future major release.

    Implements

    Index
    • Given a Context and a carrier, extract context values from a carrier and return a new context, created from the old context, with the extracted values.

      Parameters

      • context: Context

        the Context from which to extract values to transmit over the wire.

      • carrier: unknown

        the carrier of propagation fields, such as http request headers.

      • getter: TextMapGetter

        an optional TextMapGetter. If undefined, keys will be all own properties, and keys will be accessed by direct object access.

      Returns Context

    • Injects values from a given Context into a carrier.

      OpenTelemetry defines a common set of format values (TextMapPropagator), and each has an expected carrier type.

      Parameters

      • context: Context

        the Context from which to extract values to transmit over the wire.

      • carrier: unknown

        the carrier of propagation fields, such as http request headers.

      • setter: TextMapSetter

        an optional TextMapSetter. If undefined, values will be set by direct object assignment.

      Returns void