elastic-node

Node.js zero-code elastic-apm-node4.8.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.8.0 4.8.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, 07:42 UTC
Harness
9b99070 · measured in backtest-elastic-node-4.8.0
Raw JSON
4.8.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-895bc3f7,team=alpha
ot-baggage-routing-key rk-895bc3f7
traceparent 00-6fd58f7043763c2ada6f40efd8c5568e-ee2f5e8e86b8b25b-01
tracestate cptest=v1
x-cp-canary elastic-node--http-http--3f437a25

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-6fd58f7043763c2ada6f40efd8c5568e-77c5f6a6346b5fbc-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--http-http--3f437a25
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-64ab0671,team=alpha
ot-baggage-routing-key rk-64ab0671
traceparent 00-c8d1ff5faba0941a078c32482021280b-21dcd5f3ca49a292-01
tracestate cptest=v1
x-cp-canary elastic-node--http-grpc--87ad1000

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-c8d1ff5faba0941a078c32482021280b-b3890f4302643a5e-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--http-grpc--87ad1000
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-11a9d177,team=alpha
ot-baggage-routing-key rk-11a9d177
traceparent 00-b4d7ce03f2639d9acc15fe9fd031eb6b-4af16d02c8fd8d32-01
tracestate cptest=v1
x-cp-canary elastic-node--http-kafka--c65d7945

Observed at the sink on the outbound Kafka record headers

traceparent 00-b4d7ce03f2639d9acc15fe9fd031eb6b-bc7b029e406a6dee-01
tracestate cptest=v1
test id
elastic-node--http-kafka--c65d7945
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-cce2799a,team=alpha
ot-baggage-routing-key rk-cce2799a
traceparent 00-9a8cacc6e91f14f2c4bd5c9fac879d5c-65bbc46408b6cee3-01
tracestate cptest=v1
x-cp-canary elastic-node--http-rabbitmq--aadcc160

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

No headers observed.

test id
elastic-node--http-rabbitmq--aadcc160
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-4729c359,team=alpha
ot-baggage-routing-key rk-4729c359
traceparent 00-e1feb278079f11ea86ea3f080a5d9591-a13012c9eff08b52-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-http--ce58ef34

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-e1feb278079f11ea86ea3f080a5d9591-4d63720a6f0472d2-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--grpc-http--ce58ef34
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-54515c11,team=alpha
ot-baggage-routing-key rk-54515c11
traceparent 00-820af4005ab0c8b0fd7514e27a9521e8-5d4c18fc077a56e5-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-grpc--8937dfde

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-820af4005ab0c8b0fd7514e27a9521e8-463cb05800091e94-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--grpc-grpc--8937dfde
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-d3c023a0,team=alpha
ot-baggage-routing-key rk-d3c023a0
traceparent 00-d754eb5e29691e6694e00eb90bdac346-44ff9674df8d2751-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-kafka--d2060811

Observed at the sink on the outbound Kafka record headers

traceparent 00-d754eb5e29691e6694e00eb90bdac346-eb528516bff17a70-01
tracestate cptest=v1
test id
elastic-node--grpc-kafka--d2060811
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-38064521,team=alpha
ot-baggage-routing-key rk-38064521
traceparent 00-5de3b03c5faab0f93728df5d5e750820-59b85364e3346adf-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-rabbitmq--ee05c3ed

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

No headers observed.

test id
elastic-node--grpc-rabbitmq--ee05c3ed
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-4cb30157,team=alpha
ot-baggage-routing-key rk-4cb30157
traceparent 00-0ff44672dd851110271483361303a879-363d3e96026d9e01-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-http--66aae34d

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-0ff44672dd851110271483361303a879-637b138c8bf913c4-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--kafka-http--66aae34d
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-522e3599,team=alpha
ot-baggage-routing-key rk-522e3599
traceparent 00-ea50336187b3c53ba266abc015010e3b-7c58771a5785dbd8-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-grpc--ca9e769c

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-ea50336187b3c53ba266abc015010e3b-6ddc4b52e9ed3a6f-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--kafka-grpc--ca9e769c
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-12762fec,team=alpha
ot-baggage-routing-key rk-12762fec
traceparent 00-9583312e67c15862c4bb8920269c1145-2e15150bd36a1c43-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-kafka--924145da

Observed at the sink on the outbound Kafka record headers

traceparent 00-9583312e67c15862c4bb8920269c1145-fa9e889f284361ba-01
tracestate cptest=v1
test id
elastic-node--kafka-kafka--924145da
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-ae5da01f,team=alpha
ot-baggage-routing-key rk-ae5da01f
traceparent 00-432b505a02d40b74a57a4216a0fab40d-bb11ac678b152b38-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-rabbitmq--399b27cb

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

No headers observed.

test id
elastic-node--kafka-rabbitmq--399b27cb
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-40853f05,team=alpha
ot-baggage-routing-key rk-40853f05
traceparent 00-e119585e3c7259d11ab8b16e196b226c-b086e30403bb1b51-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-http--98fc0a36

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--98fc0a36
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-749f0d74,team=alpha
ot-baggage-routing-key rk-749f0d74
traceparent 00-d29da6208d0e763a0c62fa7c754b36bf-61a3ebe82a5611c4-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-grpc--e63aaf13

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--e63aaf13
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-3a52f9ad,team=alpha
ot-baggage-routing-key rk-3a52f9ad
traceparent 00-2dcd82a4a052b762a1664e0aaf1084c6-9581a6b0823a79b0-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-kafka--749cd20e

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--rabbitmq-kafka--749cd20e
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-6cb41bbb,team=alpha
ot-baggage-routing-key rk-6cb41bbb
traceparent 00-27e0ec6542ac5031176d45760131ef30-8c5e025e6e49314a-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-rabbitmq--0772f8bd

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

No headers observed.

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

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