newrelic-node

Node.js zero-code newrelic (npm)14.3.10

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.10 14.3.10 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
9 Nov 2026, 13:06 UTC
Harness
9beafb3 · measured in run-2026-11-09.3
Requires
NEW_RELIC_LICENSE_KEY
Raw JSON
14.3.10.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-c92e3f05,team=alpha
ot-baggage-routing-key rk-c92e3f05
traceparent 00-42eefce6cee71362452384574d46780b-8d6417ffe9cdcdb8-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-http--7db9d2de

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-42eefce6cee71362452384574d46780b-f724383844a35811-00
tracestate 8478732@nr=0-0-8478732-572448233--b4390f5949b904c4-0-0.686811-1794229609436,cptest=v1
user-agent axios/1.20.0
test id
newrelic-node--http-http--7db9d2de
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-2f9dff26,team=alpha
ot-baggage-routing-key rk-2f9dff26
traceparent 00-eeedf3ba8323a3470c6c8f87dc93dc02-38647448e95ffff5-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-grpc--8ed1c91f

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-eeedf3ba8323a3470c6c8f87dc93dc02-5a7cdc72a4368f87-00
tracestate 8478732@nr=0-0-8478732-572448233--274f50790e548075-0-0.551653-1794229609441,cptest=v1
user-agent grpc-node-js/1.14.4
test id
newrelic-node--http-grpc--8ed1c91f
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-15815952,team=alpha
ot-baggage-routing-key rk-15815952
traceparent 00-7814b3d991bc57f650c37ca8c36b8f43-dc18d5281bc6acc1-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-kafka--9cba9369

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--http-kafka--9cba9369
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-d7b53e98,team=alpha
ot-baggage-routing-key rk-d7b53e98
traceparent 00-a31a83a505633ebf830a28ab5c99d685-873ed72293a1f9b0-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-rabbitmq--6727ed14

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

traceparent 00-a31a83a505633ebf830a28ab5c99d685-6a8c38644ffac6f5-00
tracestate 8478732@nr=0-0-8478732-572448233--a2c8fa236229aaa5-0-0.449805-1794229609452,cptest=v1
test id
newrelic-node--http-rabbitmq--6727ed14
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-81444e2a,team=alpha
ot-baggage-routing-key rk-81444e2a
traceparent 00-1fa47e397dcc4a8ebe357028930878bf-04fc023522f26e4a-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-http--fb65ee0c

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-1fa47e397dcc4a8ebe357028930878bf-f3b764f6b06bd62c-00
tracestate 8478732@nr=0-0-8478732-572448233--345c618b44b5c8dc-0-0.010434-1794229609992,cptest=v1
user-agent axios/1.20.0
test id
newrelic-node--grpc-http--fb65ee0c
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-7f1d0e29,team=alpha
ot-baggage-routing-key rk-7f1d0e29
traceparent 00-ff8249fd56e9c0fd7150d7726aef8242-74926a2349822b8d-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-grpc--d1fc118f

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-ff8249fd56e9c0fd7150d7726aef8242-6a5ac908b63cc002-00
tracestate 8478732@nr=0-0-8478732-572448233--8a4e1f9f67eb5100-0-0.549708-1794229610078,cptest=v1
user-agent grpc-node-js/1.14.4
test id
newrelic-node--grpc-grpc--d1fc118f
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-e0ba13dc,team=alpha
ot-baggage-routing-key rk-e0ba13dc
traceparent 00-00a5559a7ce7266a97f2274602af0e1a-0a82bf4840ca71a3-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-kafka--758d19a4

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--grpc-kafka--758d19a4
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-09dd44df,team=alpha
ot-baggage-routing-key rk-09dd44df
traceparent 00-e65f8065c8f2feea9ff21e754a46f71a-b7921ed88ec030dd-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-rabbitmq--93029593

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

traceparent 00-e65f8065c8f2feea9ff21e754a46f71a-6476f2e482d3fc5c-00
tracestate 8478732@nr=0-0-8478732-572448233--6a0fcb07940751b8-0-0.473893-1794229610222,cptest=v1
test id
newrelic-node--grpc-rabbitmq--93029593
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-d8d4312d,team=alpha
ot-baggage-routing-key rk-d8d4312d
traceparent 00-ecba6684f793bf1c1a0d4b9992bb966b-c69707ce1ee9cf57-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-http--a51bbc81

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--a51bbc81
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-bd87de53,team=alpha
ot-baggage-routing-key rk-bd87de53
traceparent 00-cfa405233001c4ad1efad3cdc41b3a8b-8a256295c69d1a8e-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-grpc--16291eed

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--16291eed
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-a8cffe27,team=alpha
ot-baggage-routing-key rk-a8cffe27
traceparent 00-c7525d438ffc0e8b668ec934fbef6db1-522457ac9ee64c59-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-kafka--04e16394

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--kafka-kafka--04e16394
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-9bd2f83a,team=alpha
ot-baggage-routing-key rk-9bd2f83a
traceparent 00-2e9e8336ce71cabad4bcbfe61ebb684b-7d5558ef937cae47-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-rabbitmq--afed6371

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

No headers observed.

test id
newrelic-node--kafka-rabbitmq--afed6371
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-dbd242c6,team=alpha
ot-baggage-routing-key rk-dbd242c6
traceparent 00-716fffcfdab0688e44b653a09134cec8-4e46f273c9844005-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-http--a7ad2e17

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-716fffcfdab0688e44b653a09134cec8-3708301599f8966d-00
tracestate 8478732@nr=0-0-8478732-572448233--8b19441960cdf25c-0-0.209064-1794229613273,cptest=v1
user-agent axios/1.20.0
test id
newrelic-node--rabbitmq-http--a7ad2e17
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-b825e4fe,team=alpha
ot-baggage-routing-key rk-b825e4fe
traceparent 00-2dabcfc935a0e338624bfd5e9fbe0692-d88dbb28829a7044-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-grpc--eb72a181

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-2dabcfc935a0e338624bfd5e9fbe0692-69a59519b118f386-00
tracestate 8478732@nr=0-0-8478732-572448233--2400fa6a8053a0c7-0-0.910912-1794229613774,cptest=v1
user-agent grpc-node-js/1.14.4
test id
newrelic-node--rabbitmq-grpc--eb72a181
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-6c9b94fd,team=alpha
ot-baggage-routing-key rk-6c9b94fd
traceparent 00-50f35f1fcc6eb579694d9bb8e67685d2-383c829565143750-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-kafka--92365c53

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--rabbitmq-kafka--92365c53
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-db8acbac,team=alpha
ot-baggage-routing-key rk-db8acbac
traceparent 00-2729052fc2d24cdc2d4cf963066bc0b9-4029b8c13f7d78ff-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-rabbitmq--40261891

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

traceparent 00-2729052fc2d24cdc2d4cf963066bc0b9-6fa350b2443cf7ea-00
tracestate 8478732@nr=0-0-8478732-572448233--223cbf443574e0ad-0-0.477832-1794229614776,cptest=v1
test id
newrelic-node--rabbitmq-rabbitmq--40261891
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent

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