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
30 Nov 2026, 06:44 UTC
Harness
ae4b9c9 · run run-2026-11-30.1
Raw JSON
run-2026-11-30.1.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-e50c416d,team=alpha
ot-baggage-routing-key rk-e50c416d
traceparent 00-7b1e3f20af6f10abc947ec93f716534f-2e8643f2df2dadda-01
tracestate cptest=v1
x-cp-canary otel-node--http-http--5356b3d6

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-e50c416d,team=alpha
connection keep-alive
content-length 44
content-type application/json
traceparent 00-7b1e3f20af6f10abc947ec93f716534f-f3226b8f782c5f3d-01
tracestate cptest=v1
user-agent axios/1.21.1
test id
otel-node--http-http--5356b3d6
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-a81fed1f,team=alpha
ot-baggage-routing-key rk-a81fed1f
traceparent 00-d3c7b8019e12ec1b7c76f1cc96ae3589-81c82f943fe1d412-01
tracestate cptest=v1
x-cp-canary otel-node--http-grpc--ff219a73

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
accept-encoding identity
baggage routing-key=rk-a81fed1f,team=alpha
content-type application/grpc
grpc-accept-encoding identity,deflate,gzip
traceparent 00-d3c7b8019e12ec1b7c76f1cc96ae3589-48182f09ca04566f-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.7
test id
otel-node--http-grpc--ff219a73
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-17113189,team=alpha
ot-baggage-routing-key rk-17113189
traceparent 00-4ab79ab9a3c2484c5e3092ac410b4550-15d77a3b86e1ab7f-01
tracestate cptest=v1
x-cp-canary otel-node--http-kafka--770aaac7

Observed at the sink on the outbound Kafka record headers

baggage routing-key=rk-17113189,team=alpha
traceparent 00-4ab79ab9a3c2484c5e3092ac410b4550-985e6b5e7282f33a-01
tracestate cptest=v1
test id
otel-node--http-kafka--770aaac7
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-a7b14f50,team=alpha
ot-baggage-routing-key rk-a7b14f50
traceparent 00-0e7c1b44d87abd63a917641fcff8b1e0-eff8d74e48863d10-01
tracestate cptest=v1
x-cp-canary otel-node--http-rabbitmq--a16ae55b

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

baggage routing-key=rk-a7b14f50,team=alpha
traceparent 00-0e7c1b44d87abd63a917641fcff8b1e0-c714c66c0993fe5c-01
tracestate cptest=v1
test id
otel-node--http-rabbitmq--a16ae55b
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-d58d795f,team=alpha
ot-baggage-routing-key rk-d58d795f
traceparent 00-064666cf38211c692ee06dad61712c3e-f75784d49346ce72-01
tracestate cptest=v1
x-cp-canary otel-node--grpc-http--e88aae70

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-d58d795f,team=alpha
connection keep-alive
content-length 44
content-type application/json
traceparent 00-064666cf38211c692ee06dad61712c3e-db7f703e105c243e-01
tracestate cptest=v1
user-agent axios/1.21.1
test id
otel-node--grpc-http--e88aae70
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-a1d699d4,team=alpha
ot-baggage-routing-key rk-a1d699d4
traceparent 00-a1ba3b8806e1cc125456c9aaa111afcb-fb204bd77b00dabd-01
tracestate cptest=v1
x-cp-canary otel-node--grpc-grpc--ed857da8

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
accept-encoding identity
baggage routing-key=rk-a1d699d4,team=alpha
content-type application/grpc
grpc-accept-encoding identity,deflate,gzip
traceparent 00-a1ba3b8806e1cc125456c9aaa111afcb-8f18ad1f24e9931a-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.7
test id
otel-node--grpc-grpc--ed857da8
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-5009d72a,team=alpha
ot-baggage-routing-key rk-5009d72a
traceparent 00-20ccac411fa5e48524fa1ec48ce8993a-ed51ae84c22edf0a-01
tracestate cptest=v1
x-cp-canary otel-node--grpc-kafka--74d13ae4

Observed at the sink on the outbound Kafka record headers

baggage routing-key=rk-5009d72a,team=alpha
traceparent 00-20ccac411fa5e48524fa1ec48ce8993a-24a71e6dec09cf05-01
tracestate cptest=v1
test id
otel-node--grpc-kafka--74d13ae4
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-6ff5d659,team=alpha
ot-baggage-routing-key rk-6ff5d659
traceparent 00-b3927bc6acab5dfc621bc56d13bebccc-9743e8e477fbe7d3-01
tracestate cptest=v1
x-cp-canary otel-node--grpc-rabbitmq--1f7b7d52

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

baggage routing-key=rk-6ff5d659,team=alpha
traceparent 00-b3927bc6acab5dfc621bc56d13bebccc-c9c4c4eab2a43316-01
tracestate cptest=v1
test id
otel-node--grpc-rabbitmq--1f7b7d52
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-441d3cad,team=alpha
ot-baggage-routing-key rk-441d3cad
traceparent 00-5dadf4bb5a72315dbf1013e5d6384e94-d0026fb4f7797be7-01
tracestate cptest=v1
x-cp-canary otel-node--kafka-http--2d677d0c

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-441d3cad,team=alpha
connection keep-alive
content-length 45
content-type application/json
traceparent 00-5dadf4bb5a72315dbf1013e5d6384e94-0e44ece3752fee3e-01
tracestate cptest=v1
user-agent axios/1.21.1
test id
otel-node--kafka-http--2d677d0c
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-b4e6d1bf,team=alpha
ot-baggage-routing-key rk-b4e6d1bf
traceparent 00-be741c0cf3502576e34a0b2f9564837d-73fd6d4fee879239-01
tracestate cptest=v1
x-cp-canary otel-node--kafka-grpc--ed0c8cf0

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
accept-encoding identity
baggage routing-key=rk-b4e6d1bf,team=alpha
content-type application/grpc
grpc-accept-encoding identity,deflate,gzip
traceparent 00-be741c0cf3502576e34a0b2f9564837d-d290088097b14c98-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.7
test id
otel-node--kafka-grpc--ed0c8cf0
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-35ea27da,team=alpha
ot-baggage-routing-key rk-35ea27da
traceparent 00-102dee14bf843bef98bc2a2d2419cc87-0c6e713b6345e175-01
tracestate cptest=v1
x-cp-canary otel-node--kafka-kafka--cb6d4539

Observed at the sink on the outbound Kafka record headers

baggage routing-key=rk-35ea27da,team=alpha
traceparent 00-102dee14bf843bef98bc2a2d2419cc87-8cc35f4b8f1ff509-01
tracestate cptest=v1
test id
otel-node--kafka-kafka--cb6d4539
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-6cd029c0,team=alpha
ot-baggage-routing-key rk-6cd029c0
traceparent 00-dcd33562d3754d5356e8809494f4fb35-5e19fde6a6019e9f-01
tracestate cptest=v1
x-cp-canary otel-node--kafka-rabbitmq--5f298970

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

baggage routing-key=rk-6cd029c0,team=alpha
traceparent 00-dcd33562d3754d5356e8809494f4fb35-773a57604fe5d8c8-01
tracestate cptest=v1
test id
otel-node--kafka-rabbitmq--5f298970
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-f2c4e07d,team=alpha
ot-baggage-routing-key rk-f2c4e07d
traceparent 00-95fb01ef84c515d09f3396fb04a62ba4-4422183f551885d2-01
tracestate cptest=v1
x-cp-canary otel-node--rabbitmq-http--26f8d895

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-f2c4e07d,team=alpha
connection keep-alive
content-length 48
content-type application/json
traceparent 00-95fb01ef84c515d09f3396fb04a62ba4-669e83eda78e7b53-01
tracestate cptest=v1
user-agent axios/1.21.1
test id
otel-node--rabbitmq-http--26f8d895
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-ceed0927,team=alpha
ot-baggage-routing-key rk-ceed0927
traceparent 00-47fac19549a475bba04bca82d86aaa60-65ff4633b9e78df3-01
tracestate cptest=v1
x-cp-canary otel-node--rabbitmq-grpc--48a54a5f

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
accept-encoding identity
baggage routing-key=rk-ceed0927,team=alpha
content-type application/grpc
grpc-accept-encoding identity,deflate,gzip
traceparent 00-47fac19549a475bba04bca82d86aaa60-08200bd1f789fbbc-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.7
test id
otel-node--rabbitmq-grpc--48a54a5f
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-88f9fc65,team=alpha
ot-baggage-routing-key rk-88f9fc65
traceparent 00-d0e55734a59cb2c447643c8e3ef8e4ad-89182f0603b9b356-01
tracestate cptest=v1
x-cp-canary otel-node--rabbitmq-kafka--46b87a89

Observed at the sink on the outbound Kafka record headers

baggage routing-key=rk-88f9fc65,team=alpha
traceparent 00-d0e55734a59cb2c447643c8e3ef8e4ad-5b3f071550a5772b-01
tracestate cptest=v1
test id
otel-node--rabbitmq-kafka--46b87a89
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-45a582e6,team=alpha
ot-baggage-routing-key rk-45a582e6
traceparent 00-f1148a7fec3a2fabf7e42eec6dea5c7a-67ef300265403ef0-01
tracestate cptest=v1
x-cp-canary otel-node--rabbitmq-rabbitmq--27d1ae86

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

baggage routing-key=rk-45a582e6,team=alpha
traceparent 00-f1148a7fec3a2fabf7e42eec6dea5c7a-9b4d2e664df1862e-01
tracestate cptest=v1
test id
otel-node--rabbitmq-rabbitmq--27d1ae86
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent

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