Skip to content

Latest commit

 

History

History
60 lines (47 loc) · 2.55 KB

File metadata and controls

60 lines (47 loc) · 2.55 KB

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.