Skip to content

Latest commit

 

History

History
 
 

propagators

OpenTelemetry Propagators

Built-in Propagators

OpenTelemetry core package provides many Built-in Propagators such as HttpTraceContext Propagator, B3 Propagator, Composite Propagator etc.

Click here to see Built-in Propagators.

Jaeger Propagator

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

const api = require("@opentelemetry/api");
const { JaegerHttpTracePropagator } = require('@opentelemetry/propagator-jaeger');

/* Set Global Propagator */
api.propagation.setGlobalPropagator(new JaegerHttpTracePropagator());

Click here for more comprehensive examples.

GRPC Census Propagator

OpenTelemetry gRPC Census propagator provides gRPC header propagation for systems that use the OpenCensus 'grpc-trace-bin' binary header format.

const api = require("@opentelemetry/api");
const { GrpcCensusPropagator } = require("@opentelemetry/propagator-grpc-census-binary");

/* Set Global Propagator */
api.propagation.setGlobalPropagator(new GrpcCensusPropagator());

Click here for more comprehensive examples.

Useful links

License

Apache 2.0 - See LICENSE for more information.