Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@opentelemetry/propagator-jaeger

0.8.0 • Public • Published

OpenTelemetry Propagator Jaeger

Gitter chat 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 { JaegerHttpTracePropagator } = require('@opentelemetry/propagator-jaeger');
 
const provider = new NodeTracerProvider();
provider.register({
  // Use Jaeger propagator
  propagator: new JaegerHttpTracePropagator()
});

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

332

Version

0.8.0

License

Apache-2.0

Unpacked Size

24.2 kB

Total Files

9

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar