elastic-node

Node.js zero-code elastic-apm-node3.52.2

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 3.52.2 3.52.2 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:09 UTC
Harness
374f21d · measured in backtest-elastic-node-3.52.2
Raw JSON
3.52.2.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-4dba8291,team=alpha
ot-baggage-routing-key rk-4dba8291
traceparent 00-f5a3c5213aaa2e850cd7662b1498a368-598c21c18a71d2cd-01
tracestate cptest=v1
x-cp-canary elastic-node--http-http--37faa761

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
elastic-apm-traceparent 00-f5a3c5213aaa2e850cd7662b1498a368-8d6ee3d867baebb3-01
traceparent 00-f5a3c5213aaa2e850cd7662b1498a368-8d6ee3d867baebb3-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--http-http--37faa761
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-d53121be,team=alpha
ot-baggage-routing-key rk-d53121be
traceparent 00-6e58970e28825a444cc09d4c4b50fee3-cef53307ac8ef8a8-01
tracestate cptest=v1
x-cp-canary elastic-node--http-grpc--d6eec45b

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
accept-encoding identity
content-type application/grpc
elastic-apm-traceparent 00-6e58970e28825a444cc09d4c4b50fee3-a687ac44e8a04ea2-01
grpc-accept-encoding identity,deflate,gzip
traceparent 00-6e58970e28825a444cc09d4c4b50fee3-a687ac44e8a04ea2-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--http-grpc--d6eec45b
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-a91b5937,team=alpha
ot-baggage-routing-key rk-a91b5937
traceparent 00-c2aa838c0a294f252677e4f59e9d45c5-a8f3c49841ab9087-01
tracestate cptest=v1
x-cp-canary elastic-node--http-kafka--d1d84f62

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--http-kafka--d1d84f62
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-7b8acc45,team=alpha
ot-baggage-routing-key rk-7b8acc45
traceparent 00-da4131c9286b07af6897433b9d957e63-9c320658a9c77a64-01
tracestate cptest=v1
x-cp-canary elastic-node--http-rabbitmq--48dcec67

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

No headers observed.

test id
elastic-node--http-rabbitmq--48dcec67
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-69606e1a,team=alpha
ot-baggage-routing-key rk-69606e1a
traceparent 00-7757e9adfdc1ed11822a2cf353b9e1fc-26c15d2183d6e28c-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-http--c47ecb21

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
elastic-apm-traceparent 00-7757e9adfdc1ed11822a2cf353b9e1fc-7af36570c1e92610-01
traceparent 00-7757e9adfdc1ed11822a2cf353b9e1fc-7af36570c1e92610-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--grpc-http--c47ecb21
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-ed3e8c2e,team=alpha
ot-baggage-routing-key rk-ed3e8c2e
traceparent 00-dee722104c16f7221b046cd401ce277e-53f7b3b8d5bbc0cf-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-grpc--92705fce

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
accept-encoding identity
content-type application/grpc
elastic-apm-traceparent 00-dee722104c16f7221b046cd401ce277e-df66e08e25a17803-01
grpc-accept-encoding identity,deflate,gzip
traceparent 00-dee722104c16f7221b046cd401ce277e-df66e08e25a17803-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--grpc-grpc--92705fce
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-ccb7f5b7,team=alpha
ot-baggage-routing-key rk-ccb7f5b7
traceparent 00-02d7fcdd3515be0528388e0c73fb347d-754cd334813381a4-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-kafka--fbc40c5a

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--grpc-kafka--fbc40c5a
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-f6ae30fc,team=alpha
ot-baggage-routing-key rk-f6ae30fc
traceparent 00-3991b6140de66d9527b4106bc007a4ca-b4ef65213fdbbf34-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-rabbitmq--87b4437c

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

No headers observed.

test id
elastic-node--grpc-rabbitmq--87b4437c
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-c25486f7,team=alpha
ot-baggage-routing-key rk-c25486f7
traceparent 00-2a46a15d6cb8613a8d80cc2fc94e6984-ead3988b1da1f3a9-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-http--2d93a292

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--2d93a292
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-a5226951,team=alpha
ot-baggage-routing-key rk-a5226951
traceparent 00-76f5d130bb17acd9eb75364dd5e3aa30-b5cd429de61a51aa-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-grpc--8ff217e7

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--8ff217e7
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-a1fbd3c7,team=alpha
ot-baggage-routing-key rk-a1fbd3c7
traceparent 00-7381bff67a7fd0193b5b044fd73455c0-571557b836439629-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-kafka--8182ef97

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--kafka-kafka--8182ef97
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-862b541b,team=alpha
ot-baggage-routing-key rk-862b541b
traceparent 00-6d81b531c8b3f4e82454e743765331ab-70b24deec80be7a7-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-rabbitmq--9089d62d

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

No headers observed.

test id
elastic-node--kafka-rabbitmq--9089d62d
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-5aec9dd1,team=alpha
ot-baggage-routing-key rk-5aec9dd1
traceparent 00-8c8f6976ae7a85628434f7450685bb21-5e5b915ebac6630f-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-http--5d444b80

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--5d444b80
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-217c38c2,team=alpha
ot-baggage-routing-key rk-217c38c2
traceparent 00-99d0fb389c6144e88a28d8c8c4126891-5290c8b55c8b7b36-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-grpc--adf1d151

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--adf1d151
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-115eb618,team=alpha
ot-baggage-routing-key rk-115eb618
traceparent 00-4e08a2a97ae413297277b55f9cf12db7-0255a0fea3e48744-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-kafka--8526d104

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--rabbitmq-kafka--8526d104
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-08276680,team=alpha
ot-baggage-routing-key rk-08276680
traceparent 00-5d61b157d8c00a1cbd359833147deec7-b26582f34da69f4a-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-rabbitmq--b6ba9b84

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

No headers observed.

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

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