elastic-node

Node.js zero-code elastic-apm-node4.5.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.5.0 4.5.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, 08:29 UTC
Harness
9b99070 · measured in backtest-elastic-node-4.5.0
Raw JSON
4.5.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-509bbacf,team=alpha
ot-baggage-routing-key rk-509bbacf
traceparent 00-d0dad8d5cd0772e2d4ac56357a3cbc41-0a7a8c7608b17346-01
tracestate cptest=v1
x-cp-canary elastic-node--http-http--bb8f9d90

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-d0dad8d5cd0772e2d4ac56357a3cbc41-b52d6318eb2f3290-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--http-http--bb8f9d90
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-7bd4453a,team=alpha
ot-baggage-routing-key rk-7bd4453a
traceparent 00-f5eab0ab9728010dd0ac08dab565149b-83796a873662f4de-01
tracestate cptest=v1
x-cp-canary elastic-node--http-grpc--5c39a63d

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-f5eab0ab9728010dd0ac08dab565149b-c842c1670c7ed4e8-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--http-grpc--5c39a63d
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-65a8792f,team=alpha
ot-baggage-routing-key rk-65a8792f
traceparent 00-15e684d91cb88fd8ce542b066eca7242-9fa3ec72aac15210-01
tracestate cptest=v1
x-cp-canary elastic-node--http-kafka--e3f12550

Observed at the sink on the outbound Kafka record headers

traceparent 00-15e684d91cb88fd8ce542b066eca7242-e3bb1e59fcde7e97-01
tracestate cptest=v1
test id
elastic-node--http-kafka--e3f12550
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-4ac0842c,team=alpha
ot-baggage-routing-key rk-4ac0842c
traceparent 00-260de547593f4202d992108dbe487b44-6b33d82dc51329d6-01
tracestate cptest=v1
x-cp-canary elastic-node--http-rabbitmq--42a9a4b5

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

No headers observed.

test id
elastic-node--http-rabbitmq--42a9a4b5
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-767a9a30,team=alpha
ot-baggage-routing-key rk-767a9a30
traceparent 00-2209da4799528691ecf325a890a682a6-95f4dc44190db521-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-http--7ac8abb0

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-2209da4799528691ecf325a890a682a6-c36d24717a3488fc-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--grpc-http--7ac8abb0
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-9d40abb9,team=alpha
ot-baggage-routing-key rk-9d40abb9
traceparent 00-0d3bc7059d5e9dfbb75b8a3451c8d532-b94e7f1c47acecb8-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-grpc--220fdc0b

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-0d3bc7059d5e9dfbb75b8a3451c8d532-439b493ae9a16e20-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--grpc-grpc--220fdc0b
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-3c17500f,team=alpha
ot-baggage-routing-key rk-3c17500f
traceparent 00-d4657ac231d8a40139b999c2cf57859c-0721a713c8a5b6cb-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-kafka--f757c5a9

Observed at the sink on the outbound Kafka record headers

traceparent 00-d4657ac231d8a40139b999c2cf57859c-7e393a48eec1a3dc-01
tracestate cptest=v1
test id
elastic-node--grpc-kafka--f757c5a9
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-115d2a32,team=alpha
ot-baggage-routing-key rk-115d2a32
traceparent 00-e434bb3eb1cbde92a99d6c3d89e6a8a2-d2a6a280cc4b4f74-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-rabbitmq--e68f5b6b

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

No headers observed.

test id
elastic-node--grpc-rabbitmq--e68f5b6b
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-9f192f73,team=alpha
ot-baggage-routing-key rk-9f192f73
traceparent 00-63a6cc7a7ccba3dc7bf0f59e4a76a4b4-9a8a07098dd7a545-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-http--a1f4ccd4

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-63a6cc7a7ccba3dc7bf0f59e4a76a4b4-e3685da93da50790-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--kafka-http--a1f4ccd4
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-825dd7f4,team=alpha
ot-baggage-routing-key rk-825dd7f4
traceparent 00-f1e0e15bd575b150618b4111da52e7bb-e3e6c1f7d0bceb58-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-grpc--8bd7dc4d

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-f1e0e15bd575b150618b4111da52e7bb-a266f765528d40e8-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--kafka-grpc--8bd7dc4d
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-9cda8814,team=alpha
ot-baggage-routing-key rk-9cda8814
traceparent 00-8d71e00233b80a4c01108bf6ef3723ad-29468f08ae74ada2-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-kafka--298e0e9e

Observed at the sink on the outbound Kafka record headers

traceparent 00-8d71e00233b80a4c01108bf6ef3723ad-69f287bf6450907e-01
tracestate cptest=v1
test id
elastic-node--kafka-kafka--298e0e9e
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-52605307,team=alpha
ot-baggage-routing-key rk-52605307
traceparent 00-36de4b670cf96e9c1ad0c9802c24e7ba-d6755b1dd6ee7320-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-rabbitmq--bda3bac8

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

No headers observed.

test id
elastic-node--kafka-rabbitmq--bda3bac8
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-a0f1cfcc,team=alpha
ot-baggage-routing-key rk-a0f1cfcc
traceparent 00-70efd827490d21aae4af4d5c7747e357-aaeb542ee748d13f-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-http--59f1f188

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--59f1f188
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-ec50c0b6,team=alpha
ot-baggage-routing-key rk-ec50c0b6
traceparent 00-a320c3641d3f7380887c58bf70afa99e-8cfd37ad4926ff42-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-grpc--d4c7084f

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--d4c7084f
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-b021f302,team=alpha
ot-baggage-routing-key rk-b021f302
traceparent 00-56b836e39c8e0d97fc85e4a2075d3433-5ac71f0e3dc13d8a-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-kafka--fe145a57

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--rabbitmq-kafka--fe145a57
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-dae2f370,team=alpha
ot-baggage-routing-key rk-dae2f370
traceparent 00-9531c7b3461b08a25b66864aa39691a7-d5923e0a2ae786ea-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-rabbitmq--60da49d5

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

No headers observed.

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

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