newrelic-node

Node.js zero-code newrelic (npm)14.13.0

attach --require newrelic

18/64 cells pass
  • Pass
  • Partial
  • New trace
  • Fail
  • Undelivered
  • Not run

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.

216 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.

104 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.

63 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 in this run

Tracer
newrelic 14.13.0 this version 14.13.0 on npm github
Runtime
node v26.13.1
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
25 Nov 2026, 00:16 UTC
Harness
b9a3348 · run run-2026-11-25.1
Requires
NEW_RELIC_LICENSE_KEY
Raw JSON
run-2026-11-25.1.json → variants[id = "newrelic-node"]

Libraries

express5.3.0
grpc-js1.14.7
http_clientaxios 1.21.1
kafkajs2.2.4
rabbitmqamqplib 2.4.0

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-94a93d8d,team=alpha
ot-baggage-routing-key rk-94a93d8d
traceparent 00-7ad742b91dea9bef36896bebfb138856-739b5ace0a7ab24c-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-http--530d5861

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-7ad742b91dea9bef36896bebfb138856-93dd970f8eff03b6-00
tracestate 8478732@nr=0-0-8478732-572448233--36346bc609571212-0-0.041218-1795565773646,cptest=v1
user-agent axios/1.21.1
test id
newrelic-node--http-http--530d5861
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-a649dbb1,team=alpha
ot-baggage-routing-key rk-a649dbb1
traceparent 00-66a86c7a3a230e7fe96da91792b147d0-13a76f6c7e6bd88c-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-grpc--e3815f37

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-66a86c7a3a230e7fe96da91792b147d0-148e38808fc99c07-00
tracestate 8478732@nr=0-0-8478732-572448233--3eaaa82d05a7af23-0-0.009816-1795565773651,cptest=v1
user-agent grpc-node-js/1.14.7
test id
newrelic-node--http-grpc--e3815f37
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-ebce5fb7,team=alpha
ot-baggage-routing-key rk-ebce5fb7
traceparent 00-8791b78fa17b36c9c879235143274d50-4874a2dda84e4fb5-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-kafka--1ccb712b

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--http-kafka--1ccb712b
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-07bf4021,team=alpha
ot-baggage-routing-key rk-07bf4021
traceparent 00-a8fd8cb9843a270369b82c33266edfe6-be1fa3cd5fbf6f33-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-rabbitmq--c1ac15bc

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

traceparent 00-a8fd8cb9843a270369b82c33266edfe6-f69060feb8249abf-00
tracestate 8478732@nr=0-0-8478732-572448233--573f946fa245ea98-0-0.323958-1795565774165,cptest=v1
test id
newrelic-node--http-rabbitmq--c1ac15bc
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-823c9a6e,team=alpha
ot-baggage-routing-key rk-823c9a6e
traceparent 00-4b33a3183bc067fac41e1ed3a2159cce-d3fca68f4c8ac091-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-http--903b228f

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-4b33a3183bc067fac41e1ed3a2159cce-31fc6cefde8d15aa-00
tracestate 8478732@nr=0-0-8478732-572448233--ad45a2271b8f4ff1-0-0.117339-1795565774677,cptest=v1
user-agent axios/1.21.1
test id
newrelic-node--grpc-http--903b228f
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-afbbcfd0,team=alpha
ot-baggage-routing-key rk-afbbcfd0
traceparent 00-7037714425fb72a99e3c26a28a9691d2-34dcb0c74c358793-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-grpc--8d6ccfdd

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-7037714425fb72a99e3c26a28a9691d2-c2dcb863143f7c67-00
tracestate 8478732@nr=0-0-8478732-572448233--657f2293d7485fa1-0-0.242564-1795565774799,cptest=v1
user-agent grpc-node-js/1.14.7
test id
newrelic-node--grpc-grpc--8d6ccfdd
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-3eb05d1b,team=alpha
ot-baggage-routing-key rk-3eb05d1b
traceparent 00-4c8b42b08306d32ab1f175e045c21456-f676d85d5a1fe09a-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-kafka--cd8bef2d

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--grpc-kafka--cd8bef2d
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-56c42a1e,team=alpha
ot-baggage-routing-key rk-56c42a1e
traceparent 00-7b4c4a927b444fe56ef4dcde7847b484-d9775f851ee38ea8-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-rabbitmq--20308227

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

traceparent 00-7b4c4a927b444fe56ef4dcde7847b484-639fa116feee5ee0-00
tracestate 8478732@nr=0-0-8478732-572448233--de0829c1328f9394-0-0.954076-1795565774865,cptest=v1
test id
newrelic-node--grpc-rabbitmq--20308227
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-202b76e6,team=alpha
ot-baggage-routing-key rk-202b76e6
traceparent 00-4845171751862c6adc644b0af44be753-6657302a110659b2-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-http--7c62f4db

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.21.1
test id
newrelic-node--kafka-http--7c62f4db
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-2cbfa351,team=alpha
ot-baggage-routing-key rk-2cbfa351
traceparent 00-d65ddb4f9b9be7f456eed6c799423e08-fd3524f488ba6c12-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-grpc--f2f6b348

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.7
test id
newrelic-node--kafka-grpc--f2f6b348
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-d9a88012,team=alpha
ot-baggage-routing-key rk-d9a88012
traceparent 00-afa4780344c28318df50006c1fb4f3a1-cfb6ef1859e9b88c-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-kafka--2b20d452

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--kafka-kafka--2b20d452
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-69226cb9,team=alpha
ot-baggage-routing-key rk-69226cb9
traceparent 00-aa138afedc4ab42c472b4379afcc2e24-df0d86147360ee8e-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-rabbitmq--34a00d33

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

No headers observed.

test id
newrelic-node--kafka-rabbitmq--34a00d33
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-f8f43d53,team=alpha
ot-baggage-routing-key rk-f8f43d53
traceparent 00-3cf2d40502eb2a92186435caee04eb0b-fcd807028f8d8b44-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-http--b8972101

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-3cf2d40502eb2a92186435caee04eb0b-4eb5ab0d34b8486e-00
tracestate 8478732@nr=0-0-8478732-572448233--3b928c163c940bd4-0-0.115808-1795565777910,cptest=v1
user-agent axios/1.21.1
test id
newrelic-node--rabbitmq-http--b8972101
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-a53bb353,team=alpha
ot-baggage-routing-key rk-a53bb353
traceparent 00-8d7568b310764c026422a7a0abb18f4c-8a56897ccc28fe25-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-grpc--e2d0a6a1

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-8d7568b310764c026422a7a0abb18f4c-431e56d63cbadd1e-00
tracestate 8478732@nr=0-0-8478732-572448233--e0a284a08fac41a7-0-0.669635-1795565778410,cptest=v1
user-agent grpc-node-js/1.14.7
test id
newrelic-node--rabbitmq-grpc--e2d0a6a1
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-2467de93,team=alpha
ot-baggage-routing-key rk-2467de93
traceparent 00-607a814d744039e2a68ae6f728a18590-4f56d69d43f7d7d4-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-kafka--03ba18d8

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--rabbitmq-kafka--03ba18d8
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-6200b90e,team=alpha
ot-baggage-routing-key rk-6200b90e
traceparent 00-3d726034e8fd7d8f88c7c698d7c3364f-1ae20ef87fd9d40e-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-rabbitmq--35b8c6de

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

traceparent 00-3d726034e8fd7d8f88c7c698d7c3364f-9b17f6870d900603-00
tracestate 8478732@nr=0-0-8478732-572448233--b73476539dbfb144-0-0.547524-1795565779414,cptest=v1
test id
newrelic-node--rabbitmq-rabbitmq--35b8c6de
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent

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