elastic-node

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

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.0.0 4.0.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, 10:06 UTC
Harness
374f21d · measured in backtest-elastic-node-4.0.0
Raw JSON
4.0.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-025593a8,team=alpha
ot-baggage-routing-key rk-025593a8
traceparent 00-96b78b93be79c6e7c34190dae6cc2fb7-e6e326b71645f464-01
tracestate cptest=v1
x-cp-canary elastic-node--http-http--024470f7

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-96b78b93be79c6e7c34190dae6cc2fb7-e5a62b4246133df9-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--http-http--024470f7
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-eb2ac978,team=alpha
ot-baggage-routing-key rk-eb2ac978
traceparent 00-6ecd8b3ed766be13fbdc3521e4e16ba6-39e4757fc22bf938-01
tracestate cptest=v1
x-cp-canary elastic-node--http-grpc--a48bd807

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-6ecd8b3ed766be13fbdc3521e4e16ba6-00fb06419f5f5558-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--http-grpc--a48bd807
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-04f7ca25,team=alpha
ot-baggage-routing-key rk-04f7ca25
traceparent 00-c7bb550ba8fb18bfa6edd4510b9fb6c0-9f31ca55a30c36cb-01
tracestate cptest=v1
x-cp-canary elastic-node--http-kafka--beb95d7f

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--http-kafka--beb95d7f
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-5cdda8d8,team=alpha
ot-baggage-routing-key rk-5cdda8d8
traceparent 00-966d80cc0ebee0d16fbf13d6e3c13a81-be3c91c4a511efa3-01
tracestate cptest=v1
x-cp-canary elastic-node--http-rabbitmq--16cb9b20

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

No headers observed.

test id
elastic-node--http-rabbitmq--16cb9b20
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-2a741b67,team=alpha
ot-baggage-routing-key rk-2a741b67
traceparent 00-b9660fef1581535e6e5f8ae4177ef93c-173e7e6eb5157f28-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-http--0cb230b9

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-b9660fef1581535e6e5f8ae4177ef93c-2234123fcc90d7da-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--grpc-http--0cb230b9
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-bcdaaaf4,team=alpha
ot-baggage-routing-key rk-bcdaaaf4
traceparent 00-3b6264e67073687da1b877d10d068a31-47e945512ba6e643-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-grpc--bb95bb56

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-3b6264e67073687da1b877d10d068a31-045b3c424ad9a488-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--grpc-grpc--bb95bb56
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-18a8daff,team=alpha
ot-baggage-routing-key rk-18a8daff
traceparent 00-bba91d621022f33ac101f140c07263e9-f217c738dbe79613-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-kafka--a7208ac1

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--grpc-kafka--a7208ac1
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-59e5637c,team=alpha
ot-baggage-routing-key rk-59e5637c
traceparent 00-40656182cb2c6b218b3701526c9e72a7-928685646fc8c3f8-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-rabbitmq--a1fe185d

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

No headers observed.

test id
elastic-node--grpc-rabbitmq--a1fe185d
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-5642fc65,team=alpha
ot-baggage-routing-key rk-5642fc65
traceparent 00-27644f9d9ae94b47fe258659009c9725-901f3a5f8962214e-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-http--7120a97e

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--7120a97e
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-7b484cb3,team=alpha
ot-baggage-routing-key rk-7b484cb3
traceparent 00-161b3525e9a971ef01af18b698e794d2-50a0736a5488c3e0-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-grpc--ef364d18

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--ef364d18
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-7346335d,team=alpha
ot-baggage-routing-key rk-7346335d
traceparent 00-72bd60e9f0f38d107b444f4fbef5a125-a2f832ee96fe1bb2-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-kafka--68f36e2c

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--kafka-kafka--68f36e2c
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-0637871a,team=alpha
ot-baggage-routing-key rk-0637871a
traceparent 00-09baf6a75d6086b1a6431c88977c0bf4-685b85772085caaa-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-rabbitmq--256e9d77

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

No headers observed.

test id
elastic-node--kafka-rabbitmq--256e9d77
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-c652f5af,team=alpha
ot-baggage-routing-key rk-c652f5af
traceparent 00-ddf8e82fa945ed0d6527e6095599dcec-e06f1ddd219d86ee-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-http--e0ed2d3f

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--e0ed2d3f
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-bc7a4114,team=alpha
ot-baggage-routing-key rk-bc7a4114
traceparent 00-acbd4d474aac525fb02455d6908a9e4b-55bc0dba3d7a89e9-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-grpc--f5422f75

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--f5422f75
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-501fb8ba,team=alpha
ot-baggage-routing-key rk-501fb8ba
traceparent 00-4eecd10e49813b17f150d1b819c81f57-ea5f272b1b992ab4-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-kafka--7218bab2

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--rabbitmq-kafka--7218bab2
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-fa007f82,team=alpha
ot-baggage-routing-key rk-fa007f82
traceparent 00-9fd5521386e5284fe9709be19dce41f7-f6e2814b6961116a-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-rabbitmq--f1af9306

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

No headers observed.

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

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