elastic-node

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

attach --require elastic-apm-node/start

18/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.14.0 4.14.0 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
1 Nov 2026, 05:35 UTC
Harness
e793604 · measured in backtest-elastic-node-4.14.0
Raw JSON
4.14.0.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-868c6844,team=alpha
ot-baggage-routing-key rk-868c6844
traceparent 00-2d14755a5aa712e94f2e3f354f3045f1-19e3cf72855a440b-01
tracestate cptest=v1
x-cp-canary elastic-node--http-http--3b9caf53

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-2d14755a5aa712e94f2e3f354f3045f1-f18872f3f978527b-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--http-http--3b9caf53
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-af279248,team=alpha
ot-baggage-routing-key rk-af279248
traceparent 00-36738fe0e3ba5d8589052ec08823048c-05c43cecd813a82e-01
tracestate cptest=v1
x-cp-canary elastic-node--http-grpc--c9a593ae

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-36738fe0e3ba5d8589052ec08823048c-3d23da81356506bb-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--http-grpc--c9a593ae
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-d4b2db87,team=alpha
ot-baggage-routing-key rk-d4b2db87
traceparent 00-16045539a294b0d301fc9793a1184c4d-df541e2477819031-01
tracestate cptest=v1
x-cp-canary elastic-node--http-kafka--9b7b88e8

Observed at the sink on the outbound Kafka record headers

traceparent 00-16045539a294b0d301fc9793a1184c4d-901abd7f32718f43-01
tracestate cptest=v1
test id
elastic-node--http-kafka--9b7b88e8
raw statuses
baggage=absenttracestate=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-f5dfcb77,team=alpha
ot-baggage-routing-key rk-f5dfcb77
traceparent 00-894088a6208fdadf0ec76b2adae6a205-bcb1b6a28ab5fbab-01
tracestate cptest=v1
x-cp-canary elastic-node--http-rabbitmq--46422c67

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

No headers observed.

test id
elastic-node--http-rabbitmq--46422c67
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-ecb24cde,team=alpha
ot-baggage-routing-key rk-ecb24cde
traceparent 00-eef398f163c7eccd3f333f3d12d71552-6943c1c6c860e4c7-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-http--c8a1431d

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-eef398f163c7eccd3f333f3d12d71552-3da82de5ce6f3352-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--grpc-http--c8a1431d
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-44f866fe,team=alpha
ot-baggage-routing-key rk-44f866fe
traceparent 00-39049de2f7151f0709fff532e7eb0853-bfc2756b974cdb7c-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-grpc--bfafbe80

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-39049de2f7151f0709fff532e7eb0853-7e771a89a70126f5-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--grpc-grpc--bfafbe80
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-bbc83fe1,team=alpha
ot-baggage-routing-key rk-bbc83fe1
traceparent 00-a99f5c6a28f3189e14e546e4e521ce4c-533f61eac717777b-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-kafka--b99b89c5

Observed at the sink on the outbound Kafka record headers

traceparent 00-a99f5c6a28f3189e14e546e4e521ce4c-0b74d4195291f7ea-01
tracestate cptest=v1
test id
elastic-node--grpc-kafka--b99b89c5
raw statuses
baggage=absenttracestate=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-07f908eb,team=alpha
ot-baggage-routing-key rk-07f908eb
traceparent 00-4ccb60b51b2772330a4db6e005c0a15c-ef58dbb909aa2501-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-rabbitmq--f8ef8081

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

No headers observed.

test id
elastic-node--grpc-rabbitmq--f8ef8081
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-4a4b31e8,team=alpha
ot-baggage-routing-key rk-4a4b31e8
traceparent 00-d6bdccc6e58124917a292e976a729f77-151860777c0da8a1-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-http--cb9b1917

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
traceparent 00-d6bdccc6e58124917a292e976a729f77-75a8bf37be72cbf2-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--kafka-http--cb9b1917
raw statuses
baggage=absenttracestate=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-8093881e,team=alpha
ot-baggage-routing-key rk-8093881e
traceparent 00-f9d8f69b2a8c93c8a1888a601ab1d673-bf193a230d237136-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-grpc--d03e60fa

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-f9d8f69b2a8c93c8a1888a601ab1d673-9e8c8d45bdc08c06-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--kafka-grpc--d03e60fa
raw statuses
baggage=absenttracestate=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-bdd77e31,team=alpha
ot-baggage-routing-key rk-bdd77e31
traceparent 00-f9a40f7ecc80f76a6e55c15f155b0ddc-5f42765808b668d4-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-kafka--e788c4ce

Observed at the sink on the outbound Kafka record headers

traceparent 00-f9a40f7ecc80f76a6e55c15f155b0ddc-099c5e4a455cfae3-01
tracestate cptest=v1
test id
elastic-node--kafka-kafka--e788c4ce
raw statuses
baggage=absenttracestate=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-0ca76239,team=alpha
ot-baggage-routing-key rk-0ca76239
traceparent 00-08127ca58248584792f5f831824be450-69864af6b245f07e-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-rabbitmq--783a65d5

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

No headers observed.

test id
elastic-node--kafka-rabbitmq--783a65d5
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-0647840f,team=alpha
ot-baggage-routing-key rk-0647840f
traceparent 00-0127aebd7330a2849a10e9b268899404-226bb0813ed5930a-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-http--be12fb3d

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--be12fb3d
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-892064c6,team=alpha
ot-baggage-routing-key rk-892064c6
traceparent 00-eb944b27e3e67ec5a10ad11a49d50261-94cd79324d438afe-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-grpc--7463f527

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--7463f527
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-13e09f36,team=alpha
ot-baggage-routing-key rk-13e09f36
traceparent 00-1e44f9f8bbfb9ba7a25e32f9cc914692-aa975a24cbccb83e-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-kafka--2af2dd67

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--rabbitmq-kafka--2af2dd67
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-2abea746,team=alpha
ot-baggage-routing-key rk-2abea746
traceparent 00-7deb0044741e4eb28b75649c6a441297-e115291079efcc80-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-rabbitmq--c1259825

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

No headers observed.

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

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