elastic-node

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

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.1 4.11.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
9 Nov 2026, 19:47 UTC
Harness
9b99070 · measured in backtest-elastic-node-4.11.1
Raw JSON
4.11.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-ae53ebe5,team=alpha
ot-baggage-routing-key rk-ae53ebe5
traceparent 00-57f844cc912d6de2e373bb037f872410-e29c65e43d74fec1-01
tracestate cptest=v1
x-cp-canary elastic-node--http-http--f633fcae

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-57f844cc912d6de2e373bb037f872410-522c20e03e3a4ec8-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--http-http--f633fcae
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-182778ab,team=alpha
ot-baggage-routing-key rk-182778ab
traceparent 00-eb1591990fc2334449f299413b10bfd2-d1fb782ccb4d2f35-01
tracestate cptest=v1
x-cp-canary elastic-node--http-grpc--0e831ee3

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-eb1591990fc2334449f299413b10bfd2-3348350a75c9ca6e-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--http-grpc--0e831ee3
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-d071977d,team=alpha
ot-baggage-routing-key rk-d071977d
traceparent 00-9302e412623c701d5aecbb34ec623e48-b2d24b4237be3b57-01
tracestate cptest=v1
x-cp-canary elastic-node--http-kafka--963493c2

Observed at the sink on the outbound Kafka record headers

traceparent 00-9302e412623c701d5aecbb34ec623e48-47352514e92c8cae-01
tracestate cptest=v1
test id
elastic-node--http-kafka--963493c2
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-ef8ab27c,team=alpha
ot-baggage-routing-key rk-ef8ab27c
traceparent 00-c58d29b4ba716bd2d2e8cf7a4dd457d3-959bdec9b516bf7a-01
tracestate cptest=v1
x-cp-canary elastic-node--http-rabbitmq--1c4f18d2

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

No headers observed.

test id
elastic-node--http-rabbitmq--1c4f18d2
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-e63a68ac,team=alpha
ot-baggage-routing-key rk-e63a68ac
traceparent 00-07cd27fd6efbb31722f36ea375feed14-967ec537ba821388-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-http--9c3506ba

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-07cd27fd6efbb31722f36ea375feed14-cd4e275c251a107f-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--grpc-http--9c3506ba
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-a58d2bad,team=alpha
ot-baggage-routing-key rk-a58d2bad
traceparent 00-2586f4243420d6f2caddc8bbddd1bc21-787ead96a8382a7f-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-grpc--6bc35b47

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-2586f4243420d6f2caddc8bbddd1bc21-f387f7c86589d700-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--grpc-grpc--6bc35b47
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-a18f86e7,team=alpha
ot-baggage-routing-key rk-a18f86e7
traceparent 00-5783a442260c4f075db49a671c62179f-1d2de5add17bed9f-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-kafka--efab3201

Observed at the sink on the outbound Kafka record headers

traceparent 00-5783a442260c4f075db49a671c62179f-685002aea3ddf2be-01
tracestate cptest=v1
test id
elastic-node--grpc-kafka--efab3201
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-475a23cd,team=alpha
ot-baggage-routing-key rk-475a23cd
traceparent 00-fd1e4aca610ac2523a4517dd0152ba3a-7ac0d4b6826f4323-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-rabbitmq--ce7eaf7a

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

No headers observed.

test id
elastic-node--grpc-rabbitmq--ce7eaf7a
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-d0cb471c,team=alpha
ot-baggage-routing-key rk-d0cb471c
traceparent 00-ebf16c165bc5b108685e084d51ca040f-6ef019fb4b40993b-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-http--819fa724

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-ebf16c165bc5b108685e084d51ca040f-d01245509adb3064-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--kafka-http--819fa724
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-a027e5b4,team=alpha
ot-baggage-routing-key rk-a027e5b4
traceparent 00-34dac90f274233149d00a327a4a41588-6abb84d073e98934-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-grpc--71a015a2

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-34dac90f274233149d00a327a4a41588-281a4fe4067fd69c-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--kafka-grpc--71a015a2
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-56214cee,team=alpha
ot-baggage-routing-key rk-56214cee
traceparent 00-24891ee9b33db4882aa512d2b4127f9f-0345112a5efe7b61-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-kafka--cb054452

Observed at the sink on the outbound Kafka record headers

traceparent 00-24891ee9b33db4882aa512d2b4127f9f-53dbea8f81f84c02-01
tracestate cptest=v1
test id
elastic-node--kafka-kafka--cb054452
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-68f1d09e,team=alpha
ot-baggage-routing-key rk-68f1d09e
traceparent 00-be328ab2026e66c7b352defa2e1fe405-70eb6ef5bd6d1075-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-rabbitmq--cf84adfd

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

No headers observed.

test id
elastic-node--kafka-rabbitmq--cf84adfd
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-e49787d1,team=alpha
ot-baggage-routing-key rk-e49787d1
traceparent 00-5fc115354a12882c36bd4422f6598f60-2e1ec54d99b4da1a-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-http--15862445

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--15862445
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-903b13b3,team=alpha
ot-baggage-routing-key rk-903b13b3
traceparent 00-76bd5291902bf3d011fbe45773233cc3-81a2bb79a19aa164-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-grpc--583199f9

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--583199f9
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-f329a626,team=alpha
ot-baggage-routing-key rk-f329a626
traceparent 00-8306b8ec09724b7e5ba6c6f908d388b5-ee3962c62920fd56-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-kafka--cf66f3d3

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--rabbitmq-kafka--cf66f3d3
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-6530683f,team=alpha
ot-baggage-routing-key rk-6530683f
traceparent 00-519d843a57cb2482e752f3c55b4f4846-e548ccbb166cf363-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-rabbitmq--6530826c

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

No headers observed.

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

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