otel-node

Node.js zero-code @opentelemetry/auto-instrumentations-node0.83.0

attach --require @opentelemetry/auto-instrumentations-node/register

48/64 cells pass
  • Pass
  • Partial
  • New trace
  • Fail
  • Undelivered
  • Not run

Explanations

OpenTelemetry carries the OpenTracing-era ot-baggage-* headers only with the opt-in ottrace propagator

config ot-baggage-* is a legacy OpenTracing convention. OpenTelemetry's default propagators are tracecontext and baggage; the OT Trace propagator that carries ot-baggage-* has to be selected.

The seeded ot-baggage-routing-key header is neither extracted nor re-emitted by any OpenTelemetry variant on any delivered boundary. Every variant here runs the SDK's default propagator set, tracecontext,baggage, and that set does not include the OpenTracing header format: OpenTelemetry standardised on W3C baggage, and the same values travel there instead.

The OpenTelemetry specification does list an opt-in OT Trace propagator (OTEL_PROPAGATORS=ottrace, marked deprecated) that reads and writes ot-tracer-traceid, ot-tracer-spanid, ot-tracer-sampled and ot-baggage-*, for applications migrating from OpenTracing. Several SDKs ship it as a separate package; it is never in the default set, and the harness has not measured it, so whether it makes these cells pass is documented, not verified.

The header outlives its deprecation only in Datadog's Java, Node and Go tracers, where it crosses all 16 boundaries as legacy behaviour of the datadog style (see datadog-ot-baggage-not-implemented for the Datadog tracers that do not carry it).

16 cells affected

otel-ot-baggage-not-default

OTel Node 0.48.0–0.77.0: instrumentation-amqplib's version cap excludes the app's amqplib 2.x, so RabbitMQ legs carry nothing

resolved fixed in 0.78.0 @opentelemetry/instrumentation-amqplib 0.39.0–0.66.0 declare supportedVersions '>=0.5.5 <1' (later '<2'); against the relay's amqplib 2.2.1 the module is never patched, so nothing is injected on publish and nothing extracted on consume. 0.67.0 (auto-instrumentations-node 0.78.0) raised the cap to '<3'.

Every cell this note describes now passes with 0.78.0. It is kept as the record of what failed before (21 cells).

Back-tests: auto-instrumentations-node 0.47.0–0.47.1 pass every RabbitMQ leg; 0.48.0 through 0.77.0 pass none of them (*->rabbitmq absent, rabbitmq->http/grpc a new trace, rabbitmq->rabbitmq absent); 0.78.0 and later pass all seven again. Every other leg is unaffected.

The relay's AMQP client is amqplib 2.2.1 (2.0.0 shipped 10 May 2026). An OTel JS instrumentation patches a module only if its version satisfies the instrumentation's supportedVersions. instrumentation-amqplib 0.38.0 (in auto-instrumentations-node 0.47.x) declared >=0.5.5 with no upper bound, so it patched 2.x and happened to work. opentelemetry-js-contrib PR #2196 "standardize supported versions and set upper bound limit" (merged 20 June 2024) capped it at >=0.5.5 <1, shipped in instrumentation-amqplib 0.39.0 / auto-instrumentations-node 0.48.0 on 4 July 2024. The cap was a guard against patching an untested major, long before amqplib 1.0 (March 2026) existed. PR #3491 raised it to <2 for amqplib 1.x (April 2026), and PR #3573 "support amqplib@2" (merged 17 June 2026) to <3, shipped in 0.67.0 / auto-instrumentations-node 0.78.0 on 3 July 2026.

This is the harness measuring each tracer version against the application's current library: paired with amqplib 0.10.x, the line they were released against, 0.48.0–0.77.0 instrument RabbitMQ. A user on one of those tracer versions with amqplib ≥1 gets no RabbitMQ propagation and no warning; the fix is auto-instrumentations-node ≥0.78.0 (or instrumentation-amqplib ≥0.67.0 registered directly). The two mixed legs (kafka->rabbitmq, rabbitmq->kafka) also need Kafka instrumented, see otel-node-kafkajs-added-0.49.0.

21 cells, now passing

otel-node-amqplib-2-outside-supported-range

OTel Node before 0.49.0: auto-instrumentations-node had no kafkajs instrumentation, so Kafka legs carry nothing

resolved fixed in 0.49.0 @opentelemetry/instrumentation-kafkajs joined the auto-instrumentations-node meta-package in 0.49.0 (opentelemetry-js-contrib PR #2340); earlier versions patch nothing in kafkajs, so no headers are injected on produce and consumed context is not extracted.

Every cell this note describes now passes with 0.49.0. It is kept as the record of what failed before (21 cells).

Back-tests: auto-instrumentations-node 0.47.0–0.48.0 pass no Kafka leg (*->kafka absent, kafka->http/grpc a new trace, kafka->kafka absent); 0.49.0 and later pass all of them, apart from the baggage-only regression at 0.57.0–0.58.1, which is not Kafka-specific.

@opentelemetry/instrumentation-kafkajs was created in opentelemetry-js-contrib PR #2089 (merged 17 May 2024) and added to the getNodeAutoInstrumentations() set by PR #2340 "enable auto-instrumentation for KafkaJS" (merged 23 July 2024), shipped in auto-instrumentations-node 0.49.0 on 29 July 2024. Before that a Node service relying on the meta-package had no Kafka coverage at all unless it registered the instrumentation itself.

What a user on 0.47.x–0.48.0 can do: register @opentelemetry/instrumentation-kafkajs explicitly alongside the meta-package, or upgrade to ≥0.49.0. The two mixed legs (kafka->rabbitmq, rabbitmq->kafka) also need RabbitMQ instrumented, see otel-node-amqplib-2-outside-supported-range.

21 cells, now passing

otel-node-kafkajs-added-0.49.0

Versions measured

Tracer
@opentelemetry/auto-instrumentations-node 0.83.0 0.83.0 on npm github
Runtime
node v26.13.1
Setup tier
zero-code Runtime attach only: an agent flag, a preload require, the CLR profiler environment, a php.ini extension. No application source involved.
Attach
--require @opentelemetry/auto-instrumentations-node/register
Relay source
relays/node/tools/otel
Ran at
13 Nov 2026, 08:44 UTC
Harness
c829db4 · measured in run-2026-11-13.1
Raw JSON
0.83.0.json → variants[id = "otel-node"]

Libraries

express5.3.0
grpc-js1.14.7
http_clientaxios 1.21.0
kafkajs2.2.4
rabbitmqamqplib 2.2.1

Configuration

OTEL_PROPAGATORStracecontext,baggage
OTEL_TRACES_EXPORTERconsole

Evidence per hop

What the driver seeded and what the sink observed, one entry per boundary.

HTTP HTTP baggage tracestate traceparent ot-baggage delivered via http

Seeded on the inbound HTTP request headers

baggage routing-key=rk-2cfe4ba1,team=alpha
ot-baggage-routing-key rk-2cfe4ba1
traceparent 00-0ac4ebfb34a09ff35a7d9775885f3f60-7823892c2d3fd0c5-01
tracestate cptest=v1
x-cp-canary otel-node--http-http--bbbc450c

Observed at the sink on the outbound HTTP request headers

accept application/json, text/plain, */*
accept-encoding gzip, compress, deflate, br
baggage routing-key=rk-2cfe4ba1,team=alpha
connection keep-alive
content-length 44
content-type application/json
traceparent 00-0ac4ebfb34a09ff35a7d9775885f3f60-0c8c66e6a6fe60b6-01
tracestate cptest=v1
user-agent axios/1.21.0
test id
otel-node--http-http--bbbc450c
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
HTTP gRPC baggage tracestate traceparent ot-baggage delivered via grpc

Seeded on the inbound HTTP request headers

baggage routing-key=rk-ea067c06,team=alpha
ot-baggage-routing-key rk-ea067c06
traceparent 00-0d0300572f711c3b68068389b5ce3f03-f2601864788f9b5f-01
tracestate cptest=v1
x-cp-canary otel-node--http-grpc--830c4765

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
accept-encoding identity
baggage routing-key=rk-ea067c06,team=alpha
content-type application/grpc
grpc-accept-encoding identity,deflate,gzip
traceparent 00-0d0300572f711c3b68068389b5ce3f03-e96ba3db5cb95562-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.7
test id
otel-node--http-grpc--830c4765
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
HTTP Kafka baggage tracestate traceparent ot-baggage delivered via kafka

Seeded on the inbound HTTP request headers

baggage routing-key=rk-ec17cde2,team=alpha
ot-baggage-routing-key rk-ec17cde2
traceparent 00-07b149114b7c09122bdcfa0c3e63d01d-65847dbd1a0c7e50-01
tracestate cptest=v1
x-cp-canary otel-node--http-kafka--20d757d7

Observed at the sink on the outbound Kafka record headers

baggage routing-key=rk-ec17cde2,team=alpha
traceparent 00-07b149114b7c09122bdcfa0c3e63d01d-1f52a02423e4a50a-01
tracestate cptest=v1
test id
otel-node--http-kafka--20d757d7
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
HTTP RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq

Seeded on the inbound HTTP request headers

baggage routing-key=rk-cbbf5181,team=alpha
ot-baggage-routing-key rk-cbbf5181
traceparent 00-a8aa1e6414fb712406ea221764ecf19e-9e5c0d39c3429748-01
tracestate cptest=v1
x-cp-canary otel-node--http-rabbitmq--85049d46

Observed at the sink on the outbound AMQP 0-9-1 message headers

baggage routing-key=rk-cbbf5181,team=alpha
traceparent 00-a8aa1e6414fb712406ea221764ecf19e-4310fbe164c28cd0-01
tracestate cptest=v1
test id
otel-node--http-rabbitmq--85049d46
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
gRPC HTTP baggage tracestate traceparent ot-baggage delivered via http

Seeded on the inbound gRPC metadata

baggage routing-key=rk-e8c83c10,team=alpha
ot-baggage-routing-key rk-e8c83c10
traceparent 00-07fb67868d70d762382ff4021766cb87-775937573a8b2a78-01
tracestate cptest=v1
x-cp-canary otel-node--grpc-http--653928b4

Observed at the sink on the outbound HTTP request headers

accept application/json, text/plain, */*
accept-encoding gzip, compress, deflate, br
baggage routing-key=rk-e8c83c10,team=alpha
connection keep-alive
content-length 44
content-type application/json
traceparent 00-07fb67868d70d762382ff4021766cb87-ecdcafaacc53ba06-01
tracestate cptest=v1
user-agent axios/1.21.0
test id
otel-node--grpc-http--653928b4
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
gRPC gRPC baggage tracestate traceparent ot-baggage delivered via grpc

Seeded on the inbound gRPC metadata

baggage routing-key=rk-fb9134f5,team=alpha
ot-baggage-routing-key rk-fb9134f5
traceparent 00-8c2ccf07da0f3180e339ecba86c9635c-d0ac7233d4979ccc-01
tracestate cptest=v1
x-cp-canary otel-node--grpc-grpc--e1f7de7c

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
accept-encoding identity
baggage routing-key=rk-fb9134f5,team=alpha
content-type application/grpc
grpc-accept-encoding identity,deflate,gzip
traceparent 00-8c2ccf07da0f3180e339ecba86c9635c-bf91fdf1ae0a9001-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.7
test id
otel-node--grpc-grpc--e1f7de7c
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
gRPC Kafka baggage tracestate traceparent ot-baggage delivered via kafka

Seeded on the inbound gRPC metadata

baggage routing-key=rk-b53805c2,team=alpha
ot-baggage-routing-key rk-b53805c2
traceparent 00-0b9b07fcafd379fc15d4bfe91b081e6b-5421b645dbe0862d-01
tracestate cptest=v1
x-cp-canary otel-node--grpc-kafka--bae55641

Observed at the sink on the outbound Kafka record headers

baggage routing-key=rk-b53805c2,team=alpha
traceparent 00-0b9b07fcafd379fc15d4bfe91b081e6b-3fb3489e3e017a6f-01
tracestate cptest=v1
test id
otel-node--grpc-kafka--bae55641
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
gRPC RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq

Seeded on the inbound gRPC metadata

baggage routing-key=rk-33e10bff,team=alpha
ot-baggage-routing-key rk-33e10bff
traceparent 00-e038f8af2bdb9007db88de61d4780365-7a45e02002037730-01
tracestate cptest=v1
x-cp-canary otel-node--grpc-rabbitmq--fd25e8da

Observed at the sink on the outbound AMQP 0-9-1 message headers

baggage routing-key=rk-33e10bff,team=alpha
traceparent 00-e038f8af2bdb9007db88de61d4780365-c247e741e7bf20f3-01
tracestate cptest=v1
test id
otel-node--grpc-rabbitmq--fd25e8da
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
Kafka HTTP baggage tracestate traceparent ot-baggage delivered via http

Seeded on the inbound Kafka record headers

baggage routing-key=rk-76ba6641,team=alpha
ot-baggage-routing-key rk-76ba6641
traceparent 00-8097cf69cdf24f341a2186df0f11b463-c736c4c409f514f5-01
tracestate cptest=v1
x-cp-canary otel-node--kafka-http--25633631

Observed at the sink on the outbound HTTP request headers

accept application/json, text/plain, */*
accept-encoding gzip, compress, deflate, br
baggage routing-key=rk-76ba6641,team=alpha
connection keep-alive
content-length 45
content-type application/json
traceparent 00-8097cf69cdf24f341a2186df0f11b463-536c236d5aa8c057-01
tracestate cptest=v1
user-agent axios/1.21.0
test id
otel-node--kafka-http--25633631
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
Kafka gRPC baggage tracestate traceparent ot-baggage delivered via grpc

Seeded on the inbound Kafka record headers

baggage routing-key=rk-155001a4,team=alpha
ot-baggage-routing-key rk-155001a4
traceparent 00-d40c9c1eb92f5542fda41867665f113e-550fe4013120bf45-01
tracestate cptest=v1
x-cp-canary otel-node--kafka-grpc--7a998802

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
accept-encoding identity
baggage routing-key=rk-155001a4,team=alpha
content-type application/grpc
grpc-accept-encoding identity,deflate,gzip
traceparent 00-d40c9c1eb92f5542fda41867665f113e-f93e87d8ee8da62a-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.7
test id
otel-node--kafka-grpc--7a998802
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
Kafka Kafka baggage tracestate traceparent ot-baggage delivered via kafka

Seeded on the inbound Kafka record headers

baggage routing-key=rk-73d99ac1,team=alpha
ot-baggage-routing-key rk-73d99ac1
traceparent 00-21a24f9c209afa75c744f9e8f6d9ce7c-9570eafcc3a40840-01
tracestate cptest=v1
x-cp-canary otel-node--kafka-kafka--90784bc0

Observed at the sink on the outbound Kafka record headers

baggage routing-key=rk-73d99ac1,team=alpha
traceparent 00-21a24f9c209afa75c744f9e8f6d9ce7c-c1dcfde72ead4b13-01
tracestate cptest=v1
test id
otel-node--kafka-kafka--90784bc0
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
Kafka RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq

Seeded on the inbound Kafka record headers

baggage routing-key=rk-3bb59469,team=alpha
ot-baggage-routing-key rk-3bb59469
traceparent 00-5e084fe63179d893962ca4c4b6ca57e7-b77d351f58f7b1bc-01
tracestate cptest=v1
x-cp-canary otel-node--kafka-rabbitmq--c5a315aa

Observed at the sink on the outbound AMQP 0-9-1 message headers

baggage routing-key=rk-3bb59469,team=alpha
traceparent 00-5e084fe63179d893962ca4c4b6ca57e7-8fe588ff39d374bd-01
tracestate cptest=v1
test id
otel-node--kafka-rabbitmq--c5a315aa
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
RabbitMQ HTTP baggage tracestate traceparent ot-baggage delivered via http

Seeded on the inbound AMQP 0-9-1 message headers

baggage routing-key=rk-b7a2e259,team=alpha
ot-baggage-routing-key rk-b7a2e259
traceparent 00-70a7a0eb421893c951d9bc670af81268-dc2664b1627ace42-01
tracestate cptest=v1
x-cp-canary otel-node--rabbitmq-http--9956086e

Observed at the sink on the outbound HTTP request headers

accept application/json, text/plain, */*
accept-encoding gzip, compress, deflate, br
baggage routing-key=rk-b7a2e259,team=alpha
connection keep-alive
content-length 48
content-type application/json
traceparent 00-70a7a0eb421893c951d9bc670af81268-ce96155fc962e8cc-01
tracestate cptest=v1
user-agent axios/1.21.0
test id
otel-node--rabbitmq-http--9956086e
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
RabbitMQ gRPC baggage tracestate traceparent ot-baggage delivered via grpc

Seeded on the inbound AMQP 0-9-1 message headers

baggage routing-key=rk-f2060773,team=alpha
ot-baggage-routing-key rk-f2060773
traceparent 00-7013ca9d4f0493aa82524206a51ae66d-4adaaf3536292eda-01
tracestate cptest=v1
x-cp-canary otel-node--rabbitmq-grpc--2ebc2aaa

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
accept-encoding identity
baggage routing-key=rk-f2060773,team=alpha
content-type application/grpc
grpc-accept-encoding identity,deflate,gzip
traceparent 00-7013ca9d4f0493aa82524206a51ae66d-e29cd43ce6c7678f-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.7
test id
otel-node--rabbitmq-grpc--2ebc2aaa
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
RabbitMQ Kafka baggage tracestate traceparent ot-baggage delivered via kafka

Seeded on the inbound AMQP 0-9-1 message headers

baggage routing-key=rk-c18793e0,team=alpha
ot-baggage-routing-key rk-c18793e0
traceparent 00-6ba547ea8174732e9886530fa2a86d4b-efd0784f4f4c1c50-01
tracestate cptest=v1
x-cp-canary otel-node--rabbitmq-kafka--caedae51

Observed at the sink on the outbound Kafka record headers

baggage routing-key=rk-c18793e0,team=alpha
traceparent 00-6ba547ea8174732e9886530fa2a86d4b-9394f9b1258ed940-01
tracestate cptest=v1
test id
otel-node--rabbitmq-kafka--caedae51
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
RabbitMQ RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq

Seeded on the inbound AMQP 0-9-1 message headers

baggage routing-key=rk-cf72081d,team=alpha
ot-baggage-routing-key rk-cf72081d
traceparent 00-4fa181e0f52cbd82a242aaddf1913435-625b4900f6c31feb-01
tracestate cptest=v1
x-cp-canary otel-node--rabbitmq-rabbitmq--89ad6683

Observed at the sink on the outbound AMQP 0-9-1 message headers

baggage routing-key=rk-cf72081d,team=alpha
traceparent 00-4fa181e0f52cbd82a242aaddf1913435-ee836ca55c4740f0-01
tracestate cptest=v1
test id
otel-node--rabbitmq-rabbitmq--89ad6683
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent

Cells are generated by the harness, never transcribed from documentation. Report a wrong one.