@grow-codes/apache-skywalking - v0.1.1
    Preparing search index...

    Class Sw8Propagator

    OpenTelemetry propagator for SkyWalking headers (propagator name sw8).

    • extract (default use): a valid sw8 header is stored in the context (getSw8Context, sw8Attributes); its trace id is not hex, so the W3C context stays the OpenTelemetry trace. sw8-correlation entries are added to the baggage.
    • inject: only when native metadata was set with withSw8Context; otherwise nothing is written (an OpenTelemetry span has no segment id or native span id).

    Implements

    • TextMapPropagator
    Index
    • Reads sw8 into the context and sw8-correlation into the baggage.

      Parameters

      • ctx: Context
      • carrier: unknown
      • getter: TextMapGetter

      Returns Context

    • The header names this propagator uses.

      Returns string[]

    • Writes sw8/sw8-correlation when the context carries withSw8Context metadata.

      Parameters

      • ctx: Context
      • carrier: unknown
      • setter: TextMapSetter

      Returns void