newrelic-node

Node.js zero-code newrelic (npm)14.3.8

attach --require newrelic

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

New Relic agents carry no W3C baggage on any boundary

by-design Baggage is not part of New Relic's distributed-tracing model (traceparent, tracestate, newrelic); no agent forwards the header and no feature request exists.

New Relic's "How distributed tracing works" defines the complete header model as exactly three headers: traceparent, tracestate and the vendor newrelic header. The seeded W3C baggage member is neither extracted nor re-emitted by any of the seven agents on any of the 16 boundaries, even where trace context continues perfectly (Python is 16/16 for trace context).

An org-wide search for "baggage" across all New Relic agent repositories returns three unrelated hits; no feature request for W3C baggage exists in any of the seven agent repos. New Relic carries no baggage on any protocol; an application that routes on it has to carry the header itself.

16 cells affected

newrelic-no-baggage

New Relic agents continue the trace but set the traceparent sampled flag from their own sampling decision

by-design A New Relic agent takes the trace id from traceparent but decides sampling itself unless an upstream New Relic agent's tracestate entry says otherwise; the flags byte it writes mirrors that decision, not the seeded 01.

Every New Relic pass on traceparent continues the seeded trace id, but the flags byte on the outbound header is the agent's own. The harness seeds 01 (sampled); what comes out is 00 on hops where the agent did not sample the transaction and 01 where it did. The W3C specification allows this: the sampled flag is a hint, and each participant may decide for itself.

New Relic's model carries the decision in its @nr tracestate entry (the sampled and priority fields). When an inbound request has an @nr entry from a trusted account, the agent adopts that decision; the harness seeds no @nr entry, so each agent decides with its own adaptive sampler and writes the result into both the @nr entry and the traceparent flags. Which hops come out 00 therefore varies by agent and by run.

The harness scores traceparent on the trace id only; the flags byte is recorded with each hop but not graded, so these cells pass. A W3C-only service downstream of a New Relic agent sees 00 on every request the agent did not sample, and may treat the trace as unsampled.

9 cells affected

newrelic-traceparent-flags-own-sampling

New Relic Node: kafkajs instrumentation is behind a default-off feature flag

config feature_flags.js ships kafkajs_instrumentation: false; with it off the agent skips kafkajs entirely, so no headers are injected or accepted on Kafka.

newrelic 14.3.10 is 9/16: HTTP, gRPC and RabbitMQ pass in both directions, Kafka carries nothing in either direction. lib/feature_flags.js has kafkajs_instrumentation: false (still false on main); with the flag off the agent logs "skipping instrumentation of kafkajs" and does nothing. The instrumentation shipped behind the flag in v11.19.0 (Jun 2024) and was never promoted to default; the compatibility list also caps kafkajs at 2.2.4.

Empirically confirmed: rerunning with NEW_RELIC_FEATURE_FLAG_KAFKAJS_INSTRUMENTATION=true flips all seven Kafka boundaries to pass (W3C headers both directions), which gives 16/16 with one environment variable changed. The run is archived in the harness repository as results/experiments/newrelic-node-kafkajs-flag.json.

14 cells affected

newrelic-node-kafkajs-feature-flag-off

Versions measured

Tracer
newrelic 14.3.8 14.3.8 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 newrelic
Relay source
relays/node/tools/newrelic
Ran at
10 Nov 2026, 07:54 UTC
Harness
9b99070 · measured in backtest-newrelic-node-14.3.8
Requires
NEW_RELIC_LICENSE_KEY
Raw JSON
14.3.8.json → variants[id = "newrelic-node"]

Libraries

express4.22.2
grpc-js1.14.4
http_clientaxios 1.20.0
kafkajs2.2.4
rabbitmqamqplib 0.10.9

Configuration

NEW_RELIC_DISTRIBUTED_TRACING_ENABLEDtrue

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-500108ef,team=alpha
ot-baggage-routing-key rk-500108ef
traceparent 00-dc8b0e49c5db25b40327fde500f8639c-e98d46ba4e02f2c0-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-http--3d046a3c

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-dc8b0e49c5db25b40327fde500f8639c-23495580b4f84aac-00
tracestate 8478732@nr=0-0-8478732-572448233--c23a1041c0ee857a-0-0.471853-1794297257391,cptest=v1
user-agent axios/1.20.0
test id
newrelic-node--http-http--3d046a3c
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-c769e82a,team=alpha
ot-baggage-routing-key rk-c769e82a
traceparent 00-1e3c476c320f65d0b79ddd671da6643a-a0afbef7ca9422ba-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-grpc--432b47ef

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-1e3c476c320f65d0b79ddd671da6643a-bac3294c13f877c7-00
tracestate 8478732@nr=0-0-8478732-572448233--3162c78e94f43aa4-0-0.533967-1794297257400,cptest=v1
user-agent grpc-node-js/1.14.4
test id
newrelic-node--http-grpc--432b47ef
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-47acf405,team=alpha
ot-baggage-routing-key rk-47acf405
traceparent 00-453caf2a67e4ab6f55a4cce6d12a8cc6-0d94c76b1f110059-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-kafka--1fe8c9d4

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--http-kafka--1fe8c9d4
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-7cd27bcf,team=alpha
ot-baggage-routing-key rk-7cd27bcf
traceparent 00-493f6e4c033838d46bb4ac1a63f05780-8cff66c7ae8366c3-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-rabbitmq--3ae5378d

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

traceparent 00-493f6e4c033838d46bb4ac1a63f05780-43a3c23bce3817d5-00
tracestate 8478732@nr=0-0-8478732-572448233--00e56a6edac49cf2-0-0.318141-1794297257916,cptest=v1
test id
newrelic-node--http-rabbitmq--3ae5378d
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
gRPC HTTP baggage tracestate traceparent ot-baggage delivered via http

Seeded on the inbound gRPC metadata

baggage routing-key=rk-4db79f74,team=alpha
ot-baggage-routing-key rk-4db79f74
traceparent 00-e8c4b0ab5ee043b4d5bb9d46e1cbcea5-4b214a47badc550f-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-http--cf9466a9

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-e8c4b0ab5ee043b4d5bb9d46e1cbcea5-9158aced660f63b1-00
tracestate 8478732@nr=0-0-8478732-572448233--41dd174ef1fdd163-0-0.933982-1794297258432,cptest=v1
user-agent axios/1.20.0
test id
newrelic-node--grpc-http--cf9466a9
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-d0c688b5,team=alpha
ot-baggage-routing-key rk-d0c688b5
traceparent 00-8f943268d50a204aa41b3280a121b442-ac9550cebaf6ccb9-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-grpc--680e2369

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-8f943268d50a204aa41b3280a121b442-9bba4356be96df57-00
tracestate 8478732@nr=0-0-8478732-572448233--3399dcc6cbdc0d12-0-0.757757-1794297258508,cptest=v1
user-agent grpc-node-js/1.14.4
test id
newrelic-node--grpc-grpc--680e2369
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-5dac31d8,team=alpha
ot-baggage-routing-key rk-5dac31d8
traceparent 00-260588124bf5103983f19718b201c39c-91a67343d28e22df-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-kafka--29404a6b

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--grpc-kafka--29404a6b
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-33f5f713,team=alpha
ot-baggage-routing-key rk-33f5f713
traceparent 00-e1e94ef571dadc427c5f00c7ee6d2791-dc0d29a3a6a5b55d-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-rabbitmq--db766f23

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

traceparent 00-e1e94ef571dadc427c5f00c7ee6d2791-f1e0eb60a5dea311-00
tracestate 8478732@nr=0-0-8478732-572448233--404ad7b6661d3df1-0-0.139920-1794297259040,cptest=v1
test id
newrelic-node--grpc-rabbitmq--db766f23
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
Kafka HTTP baggage tracestate traceparent ot-baggage delivered via http

Seeded on the inbound Kafka record headers

baggage routing-key=rk-d283e318,team=alpha
ot-baggage-routing-key rk-d283e318
traceparent 00-9237892b7e7c7d05cce1e76966e4dd51-da1afddfd9c19190-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-http--bd73853b

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 49
content-type application/json
user-agent axios/1.20.0
test id
newrelic-node--kafka-http--bd73853b
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-d7b27eed,team=alpha
ot-baggage-routing-key rk-d7b27eed
traceparent 00-8e7ea791cb61ccf46f6851a0269ac7f3-72bfa2606f998fe0-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-grpc--f1436cdb

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
newrelic-node--kafka-grpc--f1436cdb
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-3af577d4,team=alpha
ot-baggage-routing-key rk-3af577d4
traceparent 00-6efc430dc15283d53e28801e74b1883f-f3810eb6da323eb6-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-kafka--1a4b0620

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--kafka-kafka--1a4b0620
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-bbb4b7b9,team=alpha
ot-baggage-routing-key rk-bbb4b7b9
traceparent 00-00512cf99abbc6e422f71122447ef247-ecfe390e33f7f570-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-rabbitmq--728a3515

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

No headers observed.

test id
newrelic-node--kafka-rabbitmq--728a3515
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-dd7d9f61,team=alpha
ot-baggage-routing-key rk-dd7d9f61
traceparent 00-460383172b196635ff2ed84368a356a8-7a37721f5ebe0c2b-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-http--424ad716

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 52
content-type application/json
traceparent 00-460383172b196635ff2ed84368a356a8-3ea9a0b877ce22cb-00
tracestate 8478732@nr=0-0-8478732-572448233--6ab7275fb9b3fa87-0-0.310890-1794297262095,cptest=v1
user-agent axios/1.20.0
test id
newrelic-node--rabbitmq-http--424ad716
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_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-76087a08,team=alpha
ot-baggage-routing-key rk-76087a08
traceparent 00-619eaf82ec8faa285d2a89e11d8ab383-e13e005084c8ffea-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-grpc--570d1c96

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-619eaf82ec8faa285d2a89e11d8ab383-f577f4d07062afa7-00
tracestate 8478732@nr=0-0-8478732-572448233--2fe46664c103944f-0-0.895643-1794297262596,cptest=v1
user-agent grpc-node-js/1.14.4
test id
newrelic-node--rabbitmq-grpc--570d1c96
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_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-07d6d82e,team=alpha
ot-baggage-routing-key rk-07d6d82e
traceparent 00-96e4b6faf5e7c121ef3a36ef156c9dae-252df91d3fa1cbf3-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-kafka--24653f32

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--rabbitmq-kafka--24653f32
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-e5561ee1,team=alpha
ot-baggage-routing-key rk-e5561ee1
traceparent 00-41939772bde5ab2c63890165f4fe9c77-ef36f90f0c18359c-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-rabbitmq--13652709

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

traceparent 00-41939772bde5ab2c63890165f4fe9c77-78ff22abf91bb141-00
tracestate 8478732@nr=0-0-8478732-572448233--77bd82166c653c91-0-0.086552-1794297263599,cptest=v1
test id
newrelic-node--rabbitmq-rabbitmq--13652709
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent

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