elastic-node

Node.js zero-code elastic-apm-node4.11.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.11.0 4.11.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
9 Nov 2026, 19:51 UTC
Harness
9b99070 · measured in backtest-elastic-node-4.11.0
Raw JSON
4.11.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-d7f756c9,team=alpha
ot-baggage-routing-key rk-d7f756c9
traceparent 00-ba504b3f2317f2a407b50d34a56f4a56-9be167f8a35fa715-01
tracestate cptest=v1
x-cp-canary elastic-node--http-http--96804851

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-ba504b3f2317f2a407b50d34a56f4a56-053c674856929f6c-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--http-http--96804851
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-10e87a24,team=alpha
ot-baggage-routing-key rk-10e87a24
traceparent 00-248acd7b86cd3ca30d1520b395278dad-930fc3fa3036e8a0-01
tracestate cptest=v1
x-cp-canary elastic-node--http-grpc--339d582d

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-248acd7b86cd3ca30d1520b395278dad-2fb102f0619238c7-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--http-grpc--339d582d
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-7212108f,team=alpha
ot-baggage-routing-key rk-7212108f
traceparent 00-d90d517ac83782227af66a92c5314d35-c943c8c6de32ec5d-01
tracestate cptest=v1
x-cp-canary elastic-node--http-kafka--30e19105

Observed at the sink on the outbound Kafka record headers

traceparent 00-d90d517ac83782227af66a92c5314d35-c5860336c293bfcc-01
tracestate cptest=v1
test id
elastic-node--http-kafka--30e19105
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-572c2a9e,team=alpha
ot-baggage-routing-key rk-572c2a9e
traceparent 00-02ad3f6a314b4aec80bf9a278d2a4520-91dee4fa25aede2f-01
tracestate cptest=v1
x-cp-canary elastic-node--http-rabbitmq--fe0dbcba

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

No headers observed.

test id
elastic-node--http-rabbitmq--fe0dbcba
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-d635703b,team=alpha
ot-baggage-routing-key rk-d635703b
traceparent 00-a194fe4a53f8f6a014b156138a6e832f-2e4aa1ec20cdd009-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-http--ea00c928

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-a194fe4a53f8f6a014b156138a6e832f-85f073bca620e085-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--grpc-http--ea00c928
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-94e0594b,team=alpha
ot-baggage-routing-key rk-94e0594b
traceparent 00-438a8f0ee817bcb7ba14d367f2f7f8e2-7b09f431c1cfc374-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-grpc--6cfbfc78

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-438a8f0ee817bcb7ba14d367f2f7f8e2-71986349934e5e32-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--grpc-grpc--6cfbfc78
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-b40a0213,team=alpha
ot-baggage-routing-key rk-b40a0213
traceparent 00-b4ab6a2098ef1813b5cd0ee96c869fa6-15b56365e0760d35-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-kafka--983d90f5

Observed at the sink on the outbound Kafka record headers

traceparent 00-b4ab6a2098ef1813b5cd0ee96c869fa6-5f9859a3406a7242-01
tracestate cptest=v1
test id
elastic-node--grpc-kafka--983d90f5
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-879a3ca4,team=alpha
ot-baggage-routing-key rk-879a3ca4
traceparent 00-a23242c0d4bc6cefae203d70d9892eb8-d359bf48555c3827-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-rabbitmq--1b3aeca5

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

No headers observed.

test id
elastic-node--grpc-rabbitmq--1b3aeca5
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-a1773ed4,team=alpha
ot-baggage-routing-key rk-a1773ed4
traceparent 00-fc16a98bd2ca0e5a2523b85be312f15c-5131858e95505031-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-http--02e8dfe0

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-fc16a98bd2ca0e5a2523b85be312f15c-9de54385c0ec63de-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--kafka-http--02e8dfe0
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-bcb5ddae,team=alpha
ot-baggage-routing-key rk-bcb5ddae
traceparent 00-9775ff08e87db98d754ab9bdc43d27f3-9d0aacbab48bc238-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-grpc--6a53a3aa

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-9775ff08e87db98d754ab9bdc43d27f3-9f45bccc4eba7288-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--kafka-grpc--6a53a3aa
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-aab9f3d7,team=alpha
ot-baggage-routing-key rk-aab9f3d7
traceparent 00-48c5236ec77d809921c7f7a960f90f19-f9e230eb90267ac1-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-kafka--9b75a24c

Observed at the sink on the outbound Kafka record headers

traceparent 00-48c5236ec77d809921c7f7a960f90f19-fe8ae59ad79dd959-01
tracestate cptest=v1
test id
elastic-node--kafka-kafka--9b75a24c
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-9293ec8c,team=alpha
ot-baggage-routing-key rk-9293ec8c
traceparent 00-3245a786bba771a00df7de1dea0e4444-c252eb29e617c33e-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-rabbitmq--e536d2f3

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

No headers observed.

test id
elastic-node--kafka-rabbitmq--e536d2f3
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-15162346,team=alpha
ot-baggage-routing-key rk-15162346
traceparent 00-f5236ac81617e10dc63005463ca6413c-8e0487f2b21ef31d-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-http--c7ea912f

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--c7ea912f
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-fb3395e1,team=alpha
ot-baggage-routing-key rk-fb3395e1
traceparent 00-c6a3b3d21b1eae01ea92c082fd626363-a765152e9b8f03b5-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-grpc--9a89c68b

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--9a89c68b
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-8dd36682,team=alpha
ot-baggage-routing-key rk-8dd36682
traceparent 00-2a9438b8fee80822e8edd29a8b5438ea-8cdd3865a06aee1e-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-kafka--1cd65332

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--rabbitmq-kafka--1cd65332
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-28192f1e,team=alpha
ot-baggage-routing-key rk-28192f1e
traceparent 00-e786e69b920e9b18fdaf18de7333a3ed-0d0b51e085452dba-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-rabbitmq--d68ef695

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

No headers observed.

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

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