newrelic-node

Node.js zero-code newrelic (npm)14.0.0

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.0.0 14.0.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 newrelic
Relay source
relays/node/tools/newrelic
Ran at
10 Nov 2026, 10:15 UTC
Harness
374f21d · measured in backtest-newrelic-node-14.0.0
Requires
NEW_RELIC_LICENSE_KEY
Raw JSON
14.0.0.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-b3031b1b,team=alpha
ot-baggage-routing-key rk-b3031b1b
traceparent 00-754842defb8c3c6cef251a0334e919ec-3c9355b3c817b69a-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-http--4c7d4fb5

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-754842defb8c3c6cef251a0334e919ec-8d523977b28d184a-00
tracestate 8478732@nr=0-0-8478732-572448233-8d523977b28d184a-ef77f750f9f0cb78-0-0.913604-1794305730104,cptest=v1
user-agent axios/1.20.0
test id
newrelic-node--http-http--4c7d4fb5
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-a6d9a2f6,team=alpha
ot-baggage-routing-key rk-a6d9a2f6
traceparent 00-a7e86a0435fcf550fc7fba8df2b8949f-a5d5b4fd30d39f84-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-grpc--536a7ba4

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-a7e86a0435fcf550fc7fba8df2b8949f-2a2c010cec3c1150-00
tracestate 8478732@nr=0-0-8478732-572448233-2a2c010cec3c1150-5381ae9d4300bc04-0-0.732438-1794305730112,cptest=v1
user-agent grpc-node-js/1.14.4
test id
newrelic-node--http-grpc--536a7ba4
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-52a74e0a,team=alpha
ot-baggage-routing-key rk-52a74e0a
traceparent 00-ae5a129d9b339a21865792d4b8cd6f36-5c8c3feac5b00fb5-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-kafka--8016cdc7

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--http-kafka--8016cdc7
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-1ab0b3f0,team=alpha
ot-baggage-routing-key rk-1ab0b3f0
traceparent 00-6c2d7e114728090755cd01d4bde8bf2a-5b29be78f533823e-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-rabbitmq--688f97ae

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

traceparent 00-6c2d7e114728090755cd01d4bde8bf2a-35559591f4232fae-00
tracestate 8478732@nr=0-0-8478732-572448233-35559591f4232fae-dc6aad6df000ed39-0-0.360065-1794305730125,cptest=v1
test id
newrelic-node--http-rabbitmq--688f97ae
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-1e45d572,team=alpha
ot-baggage-routing-key rk-1e45d572
traceparent 00-ba1681f515d51262e2b7bb2234bd79e2-c8048f9cd88852c6-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-http--d5bea727

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-ba1681f515d51262e2b7bb2234bd79e2-f7859cc63107dcfd-00
tracestate 8478732@nr=0-0-8478732-572448233-f7859cc63107dcfd-c68ace5c800094b2-0-0.634059-1794305730641,cptest=v1
user-agent axios/1.20.0
test id
newrelic-node--grpc-http--d5bea727
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-42931643,team=alpha
ot-baggage-routing-key rk-42931643
traceparent 00-d1b999465188ceca2d5caf8f2c80bebb-9e6fe30dcc0d05f6-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-grpc--db0740ce

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-d1b999465188ceca2d5caf8f2c80bebb-a56875242f9c9784-00
tracestate 8478732@nr=0-0-8478732-572448233-a56875242f9c9784-ea54d44e51110d1a-0-0.715338-1794305730652,cptest=v1
user-agent grpc-node-js/1.14.4
test id
newrelic-node--grpc-grpc--db0740ce
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-36d90434,team=alpha
ot-baggage-routing-key rk-36d90434
traceparent 00-6ea5a6dd3e39b18a93d6fa0d7ce86155-4881b2bbef25109e-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-kafka--ba0be931

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--grpc-kafka--ba0be931
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-d86533e9,team=alpha
ot-baggage-routing-key rk-d86533e9
traceparent 00-081506570a534e0ebba5aaf4b0bb9d03-d6293540e26cb3dd-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-rabbitmq--1ffe6258

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

traceparent 00-081506570a534e0ebba5aaf4b0bb9d03-3a6474348a1339e8-00
tracestate 8478732@nr=0-0-8478732-572448233-3a6474348a1339e8-39458ba570771fe4-0-0.099769-1794305730699,cptest=v1
test id
newrelic-node--grpc-rabbitmq--1ffe6258
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-fc3b57b9,team=alpha
ot-baggage-routing-key rk-fc3b57b9
traceparent 00-8c3f90512df9f8855147bf92b38ea10d-a0fb7f49108a4ac2-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-http--03d03b2c

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--03d03b2c
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-d1a66083,team=alpha
ot-baggage-routing-key rk-d1a66083
traceparent 00-b79b0286912ca82d5d9490d8b68b4c6d-e61c580ef52d2564-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-grpc--32a52dd2

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--32a52dd2
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-54f5061a,team=alpha
ot-baggage-routing-key rk-54f5061a
traceparent 00-79cadcf0e8448415847015abc837deb0-3b96e9f44c68a055-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-kafka--922fb0d9

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--kafka-kafka--922fb0d9
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-2d68ba73,team=alpha
ot-baggage-routing-key rk-2d68ba73
traceparent 00-9b0fc395cd7aa1b686745965a1f9b3d7-73441cdd5a65d952-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-rabbitmq--0e1ad122

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

No headers observed.

test id
newrelic-node--kafka-rabbitmq--0e1ad122
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-01ce42ff,team=alpha
ot-baggage-routing-key rk-01ce42ff
traceparent 00-2ace1ee011b39dd0f2b8d4fcf739a8c3-ba2654690f1be723-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-http--2b9ced7c

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-2ace1ee011b39dd0f2b8d4fcf739a8c3-2b6d2bc6a1e1892b-00
tracestate 8478732@nr=0-0-8478732-572448233-2b6d2bc6a1e1892b-a518992f8244f7da-0-0.236967-1794305733742,cptest=v1
user-agent axios/1.20.0
test id
newrelic-node--rabbitmq-http--2b9ced7c
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-33598616,team=alpha
ot-baggage-routing-key rk-33598616
traceparent 00-93bf01fc580d06d54426ca4007d6cdf8-d6e357d05f3901ae-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-grpc--7ca1f188

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-93bf01fc580d06d54426ca4007d6cdf8-e50d9bff66d0a2d1-00
tracestate 8478732@nr=0-0-8478732-572448233-e50d9bff66d0a2d1-5f114d420015b9e9-0-0.116036-1794305734248,cptest=v1
user-agent grpc-node-js/1.14.4
test id
newrelic-node--rabbitmq-grpc--7ca1f188
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-7c90063d,team=alpha
ot-baggage-routing-key rk-7c90063d
traceparent 00-d0005288ef62f4b2bddeaf1679964465-c02b8d41ef65158a-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-kafka--387661e6

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--rabbitmq-kafka--387661e6
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-8b78a9bd,team=alpha
ot-baggage-routing-key rk-8b78a9bd
traceparent 00-6224cc8156967f539cd7d0994ffd5a4a-7427faf17824f656-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-rabbitmq--f48e7711

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

traceparent 00-6224cc8156967f539cd7d0994ffd5a4a-af0e16dfe355fae3-00
tracestate 8478732@nr=0-0-8478732-572448233-af0e16dfe355fae3-073b968b3bcc6507-0-0.801203-1794305735250,cptest=v1
test id
newrelic-node--rabbitmq-rabbitmq--f48e7711
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent

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