elastic-node

Node.js zero-code elastic-apm-node4.4.1

attach --require elastic-apm-node/start

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

Not compared with the uninstrumented Node.js relay (no run on this site measured it on node v22.23.4).

Explanations

Elastic APM and New Relic have no OpenTracing-era ot-baggage-* propagation

by-design ot-baggage-* is a legacy OpenTracing convention; Elastic APM and New Relic each define their propagation header set without it and offer no option that adds it.

The seeded ot-baggage-routing-key header is neither extracted nor re-emitted by any Elastic or New Relic variant on any delivered boundary. Neither tool writes the OpenTracing header format: Elastic's agent spec defines traceparent, tracestate, baggage and the binary elasticapmtraceparent; New Relic's distributed-tracing model is traceparent, tracestate and the vendor newrelic header. Neither documents a setting that adds ot-baggage-*.

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). Where a tool propagates W3C baggage, the same values travel there instead.

16 cells affected

ot-baggage-not-implemented

Elastic Node, Python, Ruby and PHP agents do not propagate W3C baggage on any boundary

open Only Elastic's Java agent (and .NET over HTTP/gRPC) implements the baggage propagation the agent spec mandates; these agents drop it on every boundary.

Elastic's agent spec mandates baggage support, but only the Java agent delivers it end-to-end. elastic-apm-node 4.18.0 has no W3C baggage implementation; elastic-apm (Python) 6.26.2, elastic-apm (Ruby) 4.9.0 and elastic_apm (PHP) 1.17.0 measure baggage absent on every boundary, including http->http where traceparent/tracestate continue. The seeded member is neither extracted nor re-emitted.

Outside Java, Elastic APM cannot currently carry application baggage across protocol boundaries; a user must forward the baggage header as an application header themselves. Elastic's Node distributed-tracing docs likewise describe manual traceparent passing only (no tracestate or baggage). We found no upstream issue requesting W3C baggage in these agents.

16 cells affected

elastic-agents-no-w3c-baggage

elastic-apm-node does not instrument amqplib; RabbitMQ legs carry nothing

open amqplib is absent from the Node agent's supported technologies; long-standing requests (#1188, #1791) have been open since 2019/2020.

elastic-apm-node 4.18.0 propagates traceparent and tracestate over HTTP, gRPC and kafkajs, but amqplib is absent from the supported-technologies page, so nothing is injected on *->rabbitmq and nothing is extracted on rabbitmq->*. Elastic's docs direct queue users to manual traceparent passing (the recipe carries traceparent only).

The amqplib requests #1188 (Jul 2019) and #1791 (Jul 2020) remain open. Workaround: pass traceparent/tracestate in message headers yourself and start the consumer transaction with the received traceparent.

14 cells affected

elastic-node-amqplib-not-instrumented

Versions measured

Tracer
elastic-apm-node 4.4.1 4.4.1 on npm github
Runtime
node v22.23.4
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 elastic-apm-node/start
Relay source
relays/node/tools/elastic
Ran at
10 Nov 2026, 08:33 UTC
Harness
9b99070 · measured in backtest-elastic-node-4.4.1
Raw JSON
4.4.1.json → variants[id = "elastic-node"]

Libraries

express4.22.2
grpc-js1.14.4
http_clientaxios 1.20.0
kafkajs2.2.4
rabbitmqamqplib 0.10.9

Configuration

Library defaults: no propagation-related environment set.

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-0d5398c4,team=alpha
ot-baggage-routing-key rk-0d5398c4
traceparent 00-c322370a39a4d748687df4240cb3023a-6794168862924b7e-01
tracestate cptest=v1
x-cp-canary elastic-node--http-http--11108985

Observed at the sink on the outbound HTTP request headers

accept application/json, text/plain, */*
accept-encoding gzip, compress, deflate, br
connection keep-alive
content-length 47
content-type application/json
traceparent 00-c322370a39a4d748687df4240cb3023a-f9a66e03788eb884-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--http-http--11108985
raw statuses
baggage=absenttracestate=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-71055377,team=alpha
ot-baggage-routing-key rk-71055377
traceparent 00-501e0ec39bc9899ccaeb956fb45a9d6a-9bec9af43fcc0632-01
tracestate cptest=v1
x-cp-canary elastic-node--http-grpc--7feb6910

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
accept-encoding identity
content-type application/grpc
grpc-accept-encoding identity,deflate,gzip
traceparent 00-501e0ec39bc9899ccaeb956fb45a9d6a-99b09447c1233581-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--http-grpc--7feb6910
raw statuses
baggage=absenttracestate=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-eb256952,team=alpha
ot-baggage-routing-key rk-eb256952
traceparent 00-d74e0fcf103f2d6a81708df76485536e-7f064c204180d813-01
tracestate cptest=v1
x-cp-canary elastic-node--http-kafka--c944fb3d

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--http-kafka--c944fb3d
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
HTTP RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq

Seeded on the inbound HTTP request headers

baggage routing-key=rk-4c27db5f,team=alpha
ot-baggage-routing-key rk-4c27db5f
traceparent 00-e0831c7d459eec61734a65a1bee1a9b9-37afb51003d046a8-01
tracestate cptest=v1
x-cp-canary elastic-node--http-rabbitmq--7f9836c7

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

No headers observed.

test id
elastic-node--http-rabbitmq--7f9836c7
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
gRPC HTTP baggage tracestate traceparent ot-baggage delivered via http

Seeded on the inbound gRPC metadata

baggage routing-key=rk-b6dfb666,team=alpha
ot-baggage-routing-key rk-b6dfb666
traceparent 00-ae6e288a4712a0d0e263bfc8f92df446-d7f1084c141f652c-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-http--e55dbb14

Observed at the sink on the outbound HTTP request headers

accept application/json, text/plain, */*
accept-encoding gzip, compress, deflate, br
connection keep-alive
content-length 47
content-type application/json
traceparent 00-ae6e288a4712a0d0e263bfc8f92df446-0da6e8b52014e446-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--grpc-http--e55dbb14
raw statuses
baggage=absenttracestate=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-f30938c3,team=alpha
ot-baggage-routing-key rk-f30938c3
traceparent 00-e133c7d3d121a0b8f3c5da2b9d12d490-757aad90d3398adb-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-grpc--c7010165

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
accept-encoding identity
content-type application/grpc
grpc-accept-encoding identity,deflate,gzip
traceparent 00-e133c7d3d121a0b8f3c5da2b9d12d490-4def69e511f9c216-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--grpc-grpc--c7010165
raw statuses
baggage=absenttracestate=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-29a34bd6,team=alpha
ot-baggage-routing-key rk-29a34bd6
traceparent 00-b5a690ed7a69f7c63c9cb38dd95d778c-f24e3aecce98e02c-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-kafka--79258987

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--grpc-kafka--79258987
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
gRPC RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq

Seeded on the inbound gRPC metadata

baggage routing-key=rk-b570ce08,team=alpha
ot-baggage-routing-key rk-b570ce08
traceparent 00-95c29ace539fd71484487c33325cc0d2-ec3c41ec44268587-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-rabbitmq--6d542a62

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

No headers observed.

test id
elastic-node--grpc-rabbitmq--6d542a62
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
Kafka HTTP baggage tracestate traceparent ot-baggage delivered via http

Seeded on the inbound Kafka record headers

baggage routing-key=rk-0393356f,team=alpha
ot-baggage-routing-key rk-0393356f
traceparent 00-a291f4e18aea94a45a9d775498dda179-c6d8b0654df2bd8c-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-http--23e871b3

Observed at the sink on the outbound HTTP request headers

accept application/json, text/plain, */*
accept-encoding gzip, compress, deflate, br
connection keep-alive
content-length 48
content-type application/json
user-agent axios/1.20.0
test id
elastic-node--kafka-http--23e871b3
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
Kafka gRPC baggage tracestate traceparent ot-baggage delivered via grpc

Seeded on the inbound Kafka record headers

baggage routing-key=rk-417647ad,team=alpha
ot-baggage-routing-key rk-417647ad
traceparent 00-6c2d90dd7de8b59004b67e1698adb12f-989efbe3b0302b14-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-grpc--1dd96b4b

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
accept-encoding identity
content-type application/grpc
grpc-accept-encoding identity,deflate,gzip
user-agent grpc-node-js/1.14.4
test id
elastic-node--kafka-grpc--1dd96b4b
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
Kafka Kafka baggage tracestate traceparent ot-baggage delivered via kafka

Seeded on the inbound Kafka record headers

baggage routing-key=rk-26e4ff15,team=alpha
ot-baggage-routing-key rk-26e4ff15
traceparent 00-46b40c54e5bec3c671e8c4963070530a-558c57e6bdfd19c6-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-kafka--a7bfae36

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--kafka-kafka--a7bfae36
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
Kafka RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq

Seeded on the inbound Kafka record headers

baggage routing-key=rk-04703f39,team=alpha
ot-baggage-routing-key rk-04703f39
traceparent 00-2d7ce673c770d6cfdd875ed5b117d1ec-00972b4e8de348f9-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-rabbitmq--f764c0bb

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

No headers observed.

test id
elastic-node--kafka-rabbitmq--f764c0bb
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_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-4b9c81d0,team=alpha
ot-baggage-routing-key rk-4b9c81d0
traceparent 00-f94026d7ce6f1bc174aec993ae4fa6f6-49028b1b72785fb8-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-http--15ff2996

Observed at the sink on the outbound HTTP request headers

accept application/json, text/plain, */*
accept-encoding gzip, compress, deflate, br
connection keep-alive
content-length 51
content-type application/json
user-agent axios/1.20.0
test id
elastic-node--rabbitmq-http--15ff2996
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_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-fc0f8914,team=alpha
ot-baggage-routing-key rk-fc0f8914
traceparent 00-174d59c1fa02967abd7a14106b74787b-b66e9e98c006cebc-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-grpc--01966d9a

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
accept-encoding identity
content-type application/grpc
grpc-accept-encoding identity,deflate,gzip
user-agent grpc-node-js/1.14.4
test id
elastic-node--rabbitmq-grpc--01966d9a
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_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-f5f68e84,team=alpha
ot-baggage-routing-key rk-f5f68e84
traceparent 00-b49fe26d1014a57dca3fe5ae3ef04013-80c1614ad99ceb77-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-kafka--c1f198bf

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--rabbitmq-kafka--c1f198bf
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_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-93a908f7,team=alpha
ot-baggage-routing-key rk-93a908f7
traceparent 00-56f7ab387c90df8b8729383dbc7e2797-758e4c4086039fe7-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-rabbitmq--8e7e5865

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

No headers observed.

test id
elastic-node--rabbitmq-rabbitmq--8e7e5865
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent

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