elastic-node

Node.js zero-code elastic-apm-node4.6.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.6.0 4.6.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
10 Nov 2026, 08:00 UTC
Harness
9b99070 · measured in backtest-elastic-node-4.6.0
Raw JSON
4.6.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-03ad3925,team=alpha
ot-baggage-routing-key rk-03ad3925
traceparent 00-11562c29ca5d0f5b81196fc20aedc55b-6314aefe147ad62d-01
tracestate cptest=v1
x-cp-canary elastic-node--http-http--da4be110

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-11562c29ca5d0f5b81196fc20aedc55b-aa97e6104941c141-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--http-http--da4be110
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-08288237,team=alpha
ot-baggage-routing-key rk-08288237
traceparent 00-03f8283846902a60ec84a2774fa9cf47-5e59d09dfcf2d05d-01
tracestate cptest=v1
x-cp-canary elastic-node--http-grpc--6d0ea276

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-03f8283846902a60ec84a2774fa9cf47-1361e84eec9f3051-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--http-grpc--6d0ea276
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-41edc391,team=alpha
ot-baggage-routing-key rk-41edc391
traceparent 00-f27592fa0720baf7af4abb14e55a14de-baf66b9310b9f23a-01
tracestate cptest=v1
x-cp-canary elastic-node--http-kafka--f30cee68

Observed at the sink on the outbound Kafka record headers

traceparent 00-f27592fa0720baf7af4abb14e55a14de-64897171a5f9566c-01
tracestate cptest=v1
test id
elastic-node--http-kafka--f30cee68
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-40d08b54,team=alpha
ot-baggage-routing-key rk-40d08b54
traceparent 00-7073e0be70b08d45c45d97541c67dae9-b3aa833f2f3f5119-01
tracestate cptest=v1
x-cp-canary elastic-node--http-rabbitmq--dcbe80fd

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

No headers observed.

test id
elastic-node--http-rabbitmq--dcbe80fd
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-37f97008,team=alpha
ot-baggage-routing-key rk-37f97008
traceparent 00-d0a59af531e81a443853535e8afa2d88-6317ca4e9b92f35f-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-http--65caa633

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-d0a59af531e81a443853535e8afa2d88-1ec11dfe68f834eb-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--grpc-http--65caa633
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-cb94d6ef,team=alpha
ot-baggage-routing-key rk-cb94d6ef
traceparent 00-75f796fabe8b6bdd89d5e989c135ded9-c2c1f43acfa84c13-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-grpc--3ab8f611

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-75f796fabe8b6bdd89d5e989c135ded9-58e8ef0f76f86770-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--grpc-grpc--3ab8f611
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-4b015fde,team=alpha
ot-baggage-routing-key rk-4b015fde
traceparent 00-5ee2482160e342f8ea3b2fa9b6d64dbb-363fba317086451a-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-kafka--01d2c3c2

Observed at the sink on the outbound Kafka record headers

traceparent 00-5ee2482160e342f8ea3b2fa9b6d64dbb-2e395e507716d6f7-01
tracestate cptest=v1
test id
elastic-node--grpc-kafka--01d2c3c2
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-34fd8ef5,team=alpha
ot-baggage-routing-key rk-34fd8ef5
traceparent 00-4980f8ee63f687315d848dd5806d6049-042a5d882b4513e6-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-rabbitmq--48d1cd0e

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

No headers observed.

test id
elastic-node--grpc-rabbitmq--48d1cd0e
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-d4110ad0,team=alpha
ot-baggage-routing-key rk-d4110ad0
traceparent 00-ad522bb016858fe4a655fc9d62ec5269-c10df91f7c502872-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-http--d5ded87f

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-ad522bb016858fe4a655fc9d62ec5269-210889bacd093639-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--kafka-http--d5ded87f
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-fb2306fc,team=alpha
ot-baggage-routing-key rk-fb2306fc
traceparent 00-81017e5e51eb807e71f7c3ccd4bf14d1-38526b455b5d911b-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-grpc--c3bde581

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-81017e5e51eb807e71f7c3ccd4bf14d1-9e3408b6876b6849-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--kafka-grpc--c3bde581
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-afb574b5,team=alpha
ot-baggage-routing-key rk-afb574b5
traceparent 00-8f276ed1992112431b5f7973c9185dca-b6692bcc2083f6c8-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-kafka--86189343

Observed at the sink on the outbound Kafka record headers

traceparent 00-8f276ed1992112431b5f7973c9185dca-115fb772af8851cb-01
tracestate cptest=v1
test id
elastic-node--kafka-kafka--86189343
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-4a78d899,team=alpha
ot-baggage-routing-key rk-4a78d899
traceparent 00-acb288d25c2e0ec6e876c389710331b8-3b0670273b3b0d2d-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-rabbitmq--502a41a1

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

No headers observed.

test id
elastic-node--kafka-rabbitmq--502a41a1
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-cd171320,team=alpha
ot-baggage-routing-key rk-cd171320
traceparent 00-a50bea5bc5890fbc659e84c2d5385ce2-4120d019469350a3-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-http--a49e0791

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--a49e0791
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-96a54ab3,team=alpha
ot-baggage-routing-key rk-96a54ab3
traceparent 00-bcee76771caa3f6af962b5be0c579f0a-744d1d50c23ccecd-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-grpc--c7fb9d8b

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--c7fb9d8b
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-f7fb6313,team=alpha
ot-baggage-routing-key rk-f7fb6313
traceparent 00-9e4c70e91c84b0ad77e9f035459e62df-e10ee7604a52fde4-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-kafka--ff7c8830

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--rabbitmq-kafka--ff7c8830
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-3a46187a,team=alpha
ot-baggage-routing-key rk-3a46187a
traceparent 00-b52f8d98d9fbdb86e6f3c1a7baba39ce-9a16e8c2da2aba61-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-rabbitmq--52e2e316

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

No headers observed.

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

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