otel-node

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

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).

140 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 in this run

Tracer
@opentelemetry/auto-instrumentations-node 0.83.1 this version 0.83.1 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
23 Nov 2026, 13:41 UTC
Harness
bb737a4 · run run-2026-11-24.4
Raw JSON
run-2026-11-24.4.json → variants[id = "otel-node"]

Libraries

express5.3.0
grpc-js1.14.7
http_clientaxios 1.21.1
kafkajs2.2.4
rabbitmqamqplib 2.4.0

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-3ee5f4f4,team=alpha
ot-baggage-routing-key rk-3ee5f4f4
traceparent 00-42740ac34cb058832c90b4adb366cbb0-9fd0c2ebaf46cd84-01
tracestate cptest=v1
x-cp-canary otel-node--http-http--54934046

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-3ee5f4f4,team=alpha
connection keep-alive
content-length 44
content-type application/json
traceparent 00-42740ac34cb058832c90b4adb366cbb0-ea44e66a3088c369-01
tracestate cptest=v1
user-agent axios/1.21.1
test id
otel-node--http-http--54934046
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-798d7dbc,team=alpha
ot-baggage-routing-key rk-798d7dbc
traceparent 00-748d4b432182feedcdbb560ce25dab60-07a9849db34ee749-01
tracestate cptest=v1
x-cp-canary otel-node--http-grpc--52e6762f

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
accept-encoding identity
baggage routing-key=rk-798d7dbc,team=alpha
content-type application/grpc
grpc-accept-encoding identity,deflate,gzip
traceparent 00-748d4b432182feedcdbb560ce25dab60-9256f76fcbdc1660-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.7
test id
otel-node--http-grpc--52e6762f
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-3de737a6,team=alpha
ot-baggage-routing-key rk-3de737a6
traceparent 00-aef281e228da39d53871e41c98ac4ee0-b4cd4695df1c8d24-01
tracestate cptest=v1
x-cp-canary otel-node--http-kafka--ed781aec

Observed at the sink on the outbound Kafka record headers

baggage routing-key=rk-3de737a6,team=alpha
traceparent 00-aef281e228da39d53871e41c98ac4ee0-2d601ddfa7499ad8-01
tracestate cptest=v1
test id
otel-node--http-kafka--ed781aec
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-62590179,team=alpha
ot-baggage-routing-key rk-62590179
traceparent 00-e965acd0b14cf5ee34594ace72e1e10c-b869d81c63dee43f-01
tracestate cptest=v1
x-cp-canary otel-node--http-rabbitmq--b607ebc4

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

baggage routing-key=rk-62590179,team=alpha
traceparent 00-e965acd0b14cf5ee34594ace72e1e10c-b29f11d869ed7ba7-01
tracestate cptest=v1
test id
otel-node--http-rabbitmq--b607ebc4
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-efeb8dc7,team=alpha
ot-baggage-routing-key rk-efeb8dc7
traceparent 00-570ad87525e742484e16aeef397a8dc3-5d380097620edab4-01
tracestate cptest=v1
x-cp-canary otel-node--grpc-http--f9645591

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-efeb8dc7,team=alpha
connection keep-alive
content-length 44
content-type application/json
traceparent 00-570ad87525e742484e16aeef397a8dc3-5eb5f5b66b83c56a-01
tracestate cptest=v1
user-agent axios/1.21.1
test id
otel-node--grpc-http--f9645591
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-aa774761,team=alpha
ot-baggage-routing-key rk-aa774761
traceparent 00-d1fd5455733b19ee8fb9543b05a02347-3098bd21d4ca64db-01
tracestate cptest=v1
x-cp-canary otel-node--grpc-grpc--6531ca5b

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
accept-encoding identity
baggage routing-key=rk-aa774761,team=alpha
content-type application/grpc
grpc-accept-encoding identity,deflate,gzip
traceparent 00-d1fd5455733b19ee8fb9543b05a02347-48fec043186b731c-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.7
test id
otel-node--grpc-grpc--6531ca5b
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-2495d5f6,team=alpha
ot-baggage-routing-key rk-2495d5f6
traceparent 00-348e768b430f66dacef026dcd1ed29fa-c362532eeb487d7c-01
tracestate cptest=v1
x-cp-canary otel-node--grpc-kafka--53d3014f

Observed at the sink on the outbound Kafka record headers

baggage routing-key=rk-2495d5f6,team=alpha
traceparent 00-348e768b430f66dacef026dcd1ed29fa-82919b876072bd6d-01
tracestate cptest=v1
test id
otel-node--grpc-kafka--53d3014f
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-5cb1fcd3,team=alpha
ot-baggage-routing-key rk-5cb1fcd3
traceparent 00-a93006b12a638bc3f876e87c41e86b86-075c14bbe9837701-01
tracestate cptest=v1
x-cp-canary otel-node--grpc-rabbitmq--b5dcffcb

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

baggage routing-key=rk-5cb1fcd3,team=alpha
traceparent 00-a93006b12a638bc3f876e87c41e86b86-0b6f52f23db641ae-01
tracestate cptest=v1
test id
otel-node--grpc-rabbitmq--b5dcffcb
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-e16f9711,team=alpha
ot-baggage-routing-key rk-e16f9711
traceparent 00-80d83d9aa67bec1b6f229961519e39c5-ba21f286f4342760-01
tracestate cptest=v1
x-cp-canary otel-node--kafka-http--fb201c6a

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-e16f9711,team=alpha
connection keep-alive
content-length 45
content-type application/json
traceparent 00-80d83d9aa67bec1b6f229961519e39c5-b44341fe0fba00e8-01
tracestate cptest=v1
user-agent axios/1.21.1
test id
otel-node--kafka-http--fb201c6a
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-70098c38,team=alpha
ot-baggage-routing-key rk-70098c38
traceparent 00-f878aa630b0c6a524ce0e7e3fad70fe5-9273f92741652da8-01
tracestate cptest=v1
x-cp-canary otel-node--kafka-grpc--7b9a4937

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
accept-encoding identity
baggage routing-key=rk-70098c38,team=alpha
content-type application/grpc
grpc-accept-encoding identity,deflate,gzip
traceparent 00-f878aa630b0c6a524ce0e7e3fad70fe5-397331ad6eb704a5-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.7
test id
otel-node--kafka-grpc--7b9a4937
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-f9ef52bc,team=alpha
ot-baggage-routing-key rk-f9ef52bc
traceparent 00-4c69bbb8f12ae0eed274b5b2b382d0fa-74fe82a61c077828-01
tracestate cptest=v1
x-cp-canary otel-node--kafka-kafka--253cabaf

Observed at the sink on the outbound Kafka record headers

baggage routing-key=rk-f9ef52bc,team=alpha
traceparent 00-4c69bbb8f12ae0eed274b5b2b382d0fa-844ab025e99a7a8f-01
tracestate cptest=v1
test id
otel-node--kafka-kafka--253cabaf
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-cae2a30b,team=alpha
ot-baggage-routing-key rk-cae2a30b
traceparent 00-30e4fe6b0d3350eec1424d57233ab4f5-206ce1e11af39d17-01
tracestate cptest=v1
x-cp-canary otel-node--kafka-rabbitmq--7a2c22ed

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

baggage routing-key=rk-cae2a30b,team=alpha
traceparent 00-30e4fe6b0d3350eec1424d57233ab4f5-b64b95623d8130a4-01
tracestate cptest=v1
test id
otel-node--kafka-rabbitmq--7a2c22ed
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-9d9c793a,team=alpha
ot-baggage-routing-key rk-9d9c793a
traceparent 00-909802962ea2ae426fd80b76d7dfe031-4ef356e21255299c-01
tracestate cptest=v1
x-cp-canary otel-node--rabbitmq-http--216bb796

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-9d9c793a,team=alpha
connection keep-alive
content-length 48
content-type application/json
traceparent 00-909802962ea2ae426fd80b76d7dfe031-210489d8454eceef-01
tracestate cptest=v1
user-agent axios/1.21.1
test id
otel-node--rabbitmq-http--216bb796
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-d3b2df97,team=alpha
ot-baggage-routing-key rk-d3b2df97
traceparent 00-b05e711e3eca7e4f6c0c7ad5d2188188-fec510529d0d60e1-01
tracestate cptest=v1
x-cp-canary otel-node--rabbitmq-grpc--4a379c6c

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
accept-encoding identity
baggage routing-key=rk-d3b2df97,team=alpha
content-type application/grpc
grpc-accept-encoding identity,deflate,gzip
traceparent 00-b05e711e3eca7e4f6c0c7ad5d2188188-4cec6f9bc17c6b1a-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.7
test id
otel-node--rabbitmq-grpc--4a379c6c
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-9910439d,team=alpha
ot-baggage-routing-key rk-9910439d
traceparent 00-98124505890d4a165d73e3e7c08555a8-7a6b2e2273aaf94c-01
tracestate cptest=v1
x-cp-canary otel-node--rabbitmq-kafka--925dc309

Observed at the sink on the outbound Kafka record headers

baggage routing-key=rk-9910439d,team=alpha
traceparent 00-98124505890d4a165d73e3e7c08555a8-91e1b76f85bde003-01
tracestate cptest=v1
test id
otel-node--rabbitmq-kafka--925dc309
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-74f07928,team=alpha
ot-baggage-routing-key rk-74f07928
traceparent 00-f2ec3d3205b26cdfd88ac982959e583f-f043bb4d90d5162b-01
tracestate cptest=v1
x-cp-canary otel-node--rabbitmq-rabbitmq--83e8f5ec

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

baggage routing-key=rk-74f07928,team=alpha
traceparent 00-f2ec3d3205b26cdfd88ac982959e583f-955b308239d59fac-01
tracestate cptest=v1
test id
otel-node--rabbitmq-rabbitmq--83e8f5ec
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent

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