elastic-node

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

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.7.2 4.7.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, 07:49 UTC
Harness
9b99070 · measured in backtest-elastic-node-4.7.2
Raw JSON
4.7.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-6ad3baab,team=alpha
ot-baggage-routing-key rk-6ad3baab
traceparent 00-4882264781e27776008814b0f1962875-ae870ad6149d438a-01
tracestate cptest=v1
x-cp-canary elastic-node--http-http--c1a4c8a6

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-4882264781e27776008814b0f1962875-05c5eeca2c6d794f-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--http-http--c1a4c8a6
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-fd6360a2,team=alpha
ot-baggage-routing-key rk-fd6360a2
traceparent 00-3aa048972f3208c62d2da0e171fb0851-5b07c5c34fcb8a32-01
tracestate cptest=v1
x-cp-canary elastic-node--http-grpc--6d87b0f7

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-3aa048972f3208c62d2da0e171fb0851-9dc36d1b89c2a383-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--http-grpc--6d87b0f7
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-8e0462cb,team=alpha
ot-baggage-routing-key rk-8e0462cb
traceparent 00-cc98c5d0185b664478e04eda80571a1f-3ad2e064eb0de172-01
tracestate cptest=v1
x-cp-canary elastic-node--http-kafka--f53e86b4

Observed at the sink on the outbound Kafka record headers

traceparent 00-cc98c5d0185b664478e04eda80571a1f-104f213bc293ef4e-01
tracestate cptest=v1
test id
elastic-node--http-kafka--f53e86b4
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-9e41bb1f,team=alpha
ot-baggage-routing-key rk-9e41bb1f
traceparent 00-a5d863a47160d95d99728256f7a2f040-425168c2937df284-01
tracestate cptest=v1
x-cp-canary elastic-node--http-rabbitmq--b5cfed8f

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

No headers observed.

test id
elastic-node--http-rabbitmq--b5cfed8f
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-cbdca442,team=alpha
ot-baggage-routing-key rk-cbdca442
traceparent 00-2fa3382d137a81cf8bedf4dbc6bf7f96-3d24fdf9d7d48418-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-http--65fd1aa6

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-2fa3382d137a81cf8bedf4dbc6bf7f96-9b51f66832e7f5fd-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--grpc-http--65fd1aa6
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-a27d7244,team=alpha
ot-baggage-routing-key rk-a27d7244
traceparent 00-f14aa7b37a44a84faff336905198a2fd-9124bfd9d7205eb7-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-grpc--28b92901

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-f14aa7b37a44a84faff336905198a2fd-bca4c40c3968244b-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--grpc-grpc--28b92901
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-15ea7a64,team=alpha
ot-baggage-routing-key rk-15ea7a64
traceparent 00-6179738988af1b064e161ef795bfb723-aa7ed08d3656f2cd-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-kafka--7652bc74

Observed at the sink on the outbound Kafka record headers

traceparent 00-6179738988af1b064e161ef795bfb723-1415ee6f487efb80-01
tracestate cptest=v1
test id
elastic-node--grpc-kafka--7652bc74
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-5c3ef781,team=alpha
ot-baggage-routing-key rk-5c3ef781
traceparent 00-5466c316d722b15692201c7899552406-9f3ee929e22c75b5-01
tracestate cptest=v1
x-cp-canary elastic-node--grpc-rabbitmq--1266a8d9

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

No headers observed.

test id
elastic-node--grpc-rabbitmq--1266a8d9
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-5e8338e1,team=alpha
ot-baggage-routing-key rk-5e8338e1
traceparent 00-43b3737d462202d8592988e0db1e5a26-c7afc98566c61fe9-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-http--e2ff45a9

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-43b3737d462202d8592988e0db1e5a26-4210e025148c057c-01
tracestate cptest=v1
user-agent axios/1.20.0
test id
elastic-node--kafka-http--e2ff45a9
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-fad1a83f,team=alpha
ot-baggage-routing-key rk-fad1a83f
traceparent 00-69125aee1dfe4014ab8fd11215272b51-1638c2d0e461d23f-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-grpc--b49a6775

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-69125aee1dfe4014ab8fd11215272b51-ec35687f86ecc5ec-01
tracestate cptest=v1
user-agent grpc-node-js/1.14.4
test id
elastic-node--kafka-grpc--b49a6775
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-57c62606,team=alpha
ot-baggage-routing-key rk-57c62606
traceparent 00-d09f723a68baf8931376dd56244499cc-292bb77cb200c279-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-kafka--885820f6

Observed at the sink on the outbound Kafka record headers

traceparent 00-d09f723a68baf8931376dd56244499cc-cc1292472249f15d-01
tracestate cptest=v1
test id
elastic-node--kafka-kafka--885820f6
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-66a45e94,team=alpha
ot-baggage-routing-key rk-66a45e94
traceparent 00-63762f89f6245a98ac85c7ad8172f262-a6f1bada9eeb6863-01
tracestate cptest=v1
x-cp-canary elastic-node--kafka-rabbitmq--fa1c8cb9

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

No headers observed.

test id
elastic-node--kafka-rabbitmq--fa1c8cb9
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-c40b6962,team=alpha
ot-baggage-routing-key rk-c40b6962
traceparent 00-27bf7b6d3ea47da5baa6552c926c631f-c421539c5fd5f45c-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-http--734fce91

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--734fce91
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-bc998644,team=alpha
ot-baggage-routing-key rk-bc998644
traceparent 00-9956ce6d2ede55588fa4c788b03bf392-181d03a19f7381fe-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-grpc--6b2220bf

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--6b2220bf
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-95784030,team=alpha
ot-baggage-routing-key rk-95784030
traceparent 00-50f5f5cc03bc3747ba04b8e2f06ab122-5517c2cff54eddff-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-kafka--6aa35c8d

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-node--rabbitmq-kafka--6aa35c8d
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-b2742a20,team=alpha
ot-baggage-routing-key rk-b2742a20
traceparent 00-4ff28b72c34e394b971cf1d9c82d64a0-a46d1fe7c131918f-01
tracestate cptest=v1
x-cp-canary elastic-node--rabbitmq-rabbitmq--dcb4f99d

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

No headers observed.

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

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