Have ideas to improve npm?Join in the discussion! »

    @opentelemetry/propagator-jaeger
    TypeScript icon, indicating that this package has built-in type declarations

    0.21.0 • Public • Published

    OpenTelemetry Propagator Jaeger

    NPM Published Version dependencies devDependencies Apache License

    OpenTelemetry Jaeger propagator provides HTTP header propagation for systems that are using Jaeger HTTP header format.

    Format: {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.

    Example of usage:

    const { NodeTracerProvider } = require('@opentelemetry/node');
    const { JaegerPropagator } = require('@opentelemetry/propagator-jaeger');
    
    const provider = new NodeTracerProvider();
    provider.register({
      propagator: new JaegerPropagator()
    });

    Baggage Notes

    Jeager Baggage is represented as multiple headers where the names are carrier dependent. For this reason, they are omitted from the fields method. This behavior should be taken into account if your application relies on the fields functionality. See the specification for more details.

    Trace on Jaeger UI

    example image

    Useful links

    License

    Apache 2.0 - See LICENSE for more information.

    Install

    npm i @opentelemetry/propagator-jaeger

    DownloadsWeekly Downloads

    44,291

    Version

    0.21.0

    License

    Apache-2.0

    Unpacked Size

    40.1 kB

    Total Files

    21

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar