newrelic-node

Node.js zero-code newrelic (npm)13.19.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 13.19.0 13.19.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:20 UTC
Harness
374f21d · measured in backtest-newrelic-node-13.19.0
Requires
NEW_RELIC_LICENSE_KEY
Raw JSON
13.19.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-1d2fa380,team=alpha
ot-baggage-routing-key rk-1d2fa380
traceparent 00-16e9516d15ddf121bef19002b2b8befa-9541d7e06971ad5c-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-http--cb53a0ff

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
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDQ4MjMzIiwidHgiOiIzMGEzMGZhMzY4MmI0MWIwIiwidHIiOiIxNmU5NTE2ZDE1ZGRmMTIxYmVmMTkwMDJiMmI4YmVmYSIsInByIjowLjExNTkyNSwic2EiOmZhbHNlLCJ0aSI6MTc5NDMwNjAwMDA5NH19
traceparent 00-16e9516d15ddf121bef19002b2b8befa-ba80d23f9eb52834-00
tracestate 8478732@nr=0-0-8478732-572448233-ba80d23f9eb52834-30a30fa3682b41b0-0-0.115925-1794306000094,cptest=v1
user-agent axios/1.20.0
test id
newrelic-node--http-http--cb53a0ff
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-48834506,team=alpha
ot-baggage-routing-key rk-48834506
traceparent 00-353ef448a612d7721f9534d6041768c8-b5706f29ded165f7-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-grpc--29096bd4

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
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDQ4MjMzIiwidHgiOiI4M2JkODJhODQ1ZGRmYTJhIiwidHIiOiIzNTNlZjQ0OGE2MTJkNzcyMWY5NTM0ZDYwNDE3NjhjOCIsInByIjowLjc5NTg5OSwic2EiOmZhbHNlLCJ0aSI6MTc5NDMwNjAwMDEwMn19
traceparent 00-353ef448a612d7721f9534d6041768c8-b9980ea680e01862-00
tracestate 8478732@nr=0-0-8478732-572448233-b9980ea680e01862-83bd82a845ddfa2a-0-0.795899-1794306000102,cptest=v1
user-agent grpc-node-js/1.14.4
test id
newrelic-node--http-grpc--29096bd4
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-69c151d2,team=alpha
ot-baggage-routing-key rk-69c151d2
traceparent 00-8497900bfe3c74da7c70087fcc0c9186-2e16df629ba05600-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-kafka--49f0b64d

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--http-kafka--49f0b64d
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-dabd6d0a,team=alpha
ot-baggage-routing-key rk-dabd6d0a
traceparent 00-c718e299db9487921038ff4db2ad588c-4c312c22f57ad0fb-01
tracestate cptest=v1
x-cp-canary newrelic-node--http-rabbitmq--8526f937

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

newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDQ4MjMzIiwidHgiOiJjNDNjMWU1MjIyYjJmNjI5IiwidHIiOiJjNzE4ZTI5OWRiOTQ4NzkyMTAzOGZmNGRiMmFkNTg4YyIsInByIjowLjg3MzM4NSwic2EiOmZhbHNlLCJ0aSI6MTc5NDMwNjAwMDYxNn19
traceparent 00-c718e299db9487921038ff4db2ad588c-cb6b497ef2ed0163-00
tracestate 8478732@nr=0-0-8478732-572448233-cb6b497ef2ed0163-c43c1e5222b2f629-0-0.873385-1794306000616,cptest=v1
test id
newrelic-node--http-rabbitmq--8526f937
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-c0ad220b,team=alpha
ot-baggage-routing-key rk-c0ad220b
traceparent 00-db5fb600f3686dc48ff8e2a270a2a8ea-b6f98cb257ae5787-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-http--d20877f9

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
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDQ4MjMzIiwidHgiOiIyM2I4YzAwYzMyYjcxOWY2IiwidHIiOiJkYjVmYjYwMGYzNjg2ZGM0OGZmOGUyYTI3MGEyYThlYSIsInByIjowLjQ3NTkyNCwic2EiOmZhbHNlLCJ0aSI6MTc5NDMwNjAwMTE0OX19
traceparent 00-db5fb600f3686dc48ff8e2a270a2a8ea-db4f17eb1b9c2a9f-00
tracestate 8478732@nr=0-0-8478732-572448233-db4f17eb1b9c2a9f-23b8c00c32b719f6-0-0.475924-1794306001149,cptest=v1
user-agent axios/1.20.0
test id
newrelic-node--grpc-http--d20877f9
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-4ee8832f,team=alpha
ot-baggage-routing-key rk-4ee8832f
traceparent 00-63a286ce937d30a7ea21c580127259c5-33191b15684365d7-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-grpc--979655b2

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
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDQ4MjMzIiwidHgiOiI2NDA0Nzc0NjE0NjZmNmQzIiwidHIiOiI2M2EyODZjZTkzN2QzMGE3ZWEyMWM1ODAxMjcyNTljNSIsInByIjowLjQ2MDgyNSwic2EiOmZhbHNlLCJ0aSI6MTc5NDMwNjAwMTE4OH19
traceparent 00-63a286ce937d30a7ea21c580127259c5-0def1cfdba1842d5-00
tracestate 8478732@nr=0-0-8478732-572448233-0def1cfdba1842d5-640477461466f6d3-0-0.460825-1794306001188,cptest=v1
user-agent grpc-node-js/1.14.4
test id
newrelic-node--grpc-grpc--979655b2
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-edfec9e7,team=alpha
ot-baggage-routing-key rk-edfec9e7
traceparent 00-1ef46a743dfb4ca28f62e3934bf78084-589e3a37f3fc26e5-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-kafka--e9dd2180

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--grpc-kafka--e9dd2180
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-9a36f86c,team=alpha
ot-baggage-routing-key rk-9a36f86c
traceparent 00-26a07ab09ea722b79c8a38d97441e8e9-9b5b94319176ca00-01
tracestate cptest=v1
x-cp-canary newrelic-node--grpc-rabbitmq--e4d70e4e

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

newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDQ4MjMzIiwidHgiOiIwNzY1YmE3YmZiNDJlNGZmIiwidHIiOiIyNmEwN2FiMDllYTcyMmI3OWM4YTM4ZDk3NDQxZThlOSIsInByIjowLjA1MTMxMywic2EiOmZhbHNlLCJ0aSI6MTc5NDMwNjAwMTI2MH19
traceparent 00-26a07ab09ea722b79c8a38d97441e8e9-896802d69b5ccf96-00
tracestate 8478732@nr=0-0-8478732-572448233-896802d69b5ccf96-0765ba7bfb42e4ff-0-0.051313-1794306001260,cptest=v1
test id
newrelic-node--grpc-rabbitmq--e4d70e4e
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-44ff4789,team=alpha
ot-baggage-routing-key rk-44ff4789
traceparent 00-51efbc639ef9f834c5ba759ec3954365-e87489d0ea60670c-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-http--fff04233

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--fff04233
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-9fc574eb,team=alpha
ot-baggage-routing-key rk-9fc574eb
traceparent 00-07ad06010364a1ad94104e26f6eb7722-59516c99d1e0a623-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-grpc--a6e9ff4f

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--a6e9ff4f
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-8d038fbf,team=alpha
ot-baggage-routing-key rk-8d038fbf
traceparent 00-03f9deed99961b1b82bd633b31dd570a-78d42df94e43eced-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-kafka--db9eb62d

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--kafka-kafka--db9eb62d
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-2f692b02,team=alpha
ot-baggage-routing-key rk-2f692b02
traceparent 00-724ae10ff4827de6356d3146de35dbe8-286bc733d2cb7a45-01
tracestate cptest=v1
x-cp-canary newrelic-node--kafka-rabbitmq--2447a6b7

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

No headers observed.

test id
newrelic-node--kafka-rabbitmq--2447a6b7
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-f3bdda36,team=alpha
ot-baggage-routing-key rk-f3bdda36
traceparent 00-17bf247a0058869fadfcda4acc65a255-90119fe978418564-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-http--d3147fdc

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
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDQ4MjMzIiwidHgiOiIyODQxNDQ4YmM1ODFhNjEzIiwidHIiOiIxN2JmMjQ3YTAwNTg4NjlmYWRmY2RhNGFjYzY1YTI1NSIsInByIjowLjg3MzAyMiwic2EiOmZhbHNlLCJ0aSI6MTc5NDMwNjAwMzgwN319
traceparent 00-17bf247a0058869fadfcda4acc65a255-1b0f41058ed7181d-00
tracestate 8478732@nr=0-0-8478732-572448233-1b0f41058ed7181d-2841448bc581a613-0-0.873022-1794306003807,cptest=v1
user-agent axios/1.20.0
test id
newrelic-node--rabbitmq-http--d3147fdc
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-ccc92abf,team=alpha
ot-baggage-routing-key rk-ccc92abf
traceparent 00-76a2184700244205cc21d3cb1279e349-7c82076e19404b93-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-grpc--f1ba2bae

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
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDQ4MjMzIiwidHgiOiJjYjZkMDlmZTkzM2FlNGFhIiwidHIiOiI3NmEyMTg0NzAwMjQ0MjA1Y2MyMWQzY2IxMjc5ZTM0OSIsInByIjowLjQzODQwNiwic2EiOmZhbHNlLCJ0aSI6MTc5NDMwNjAwNDMwOH19
traceparent 00-76a2184700244205cc21d3cb1279e349-9dc08b6a487bc4be-00
tracestate 8478732@nr=0-0-8478732-572448233-9dc08b6a487bc4be-cb6d09fe933ae4aa-0-0.438406-1794306004308,cptest=v1
user-agent grpc-node-js/1.14.4
test id
newrelic-node--rabbitmq-grpc--f1ba2bae
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-316ddf78,team=alpha
ot-baggage-routing-key rk-316ddf78
traceparent 00-5b836dbb9ec2196d5eaf2cbc791ee0fa-f957a9053dbd340f-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-kafka--86802411

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-node--rabbitmq-kafka--86802411
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-c2a60579,team=alpha
ot-baggage-routing-key rk-c2a60579
traceparent 00-be1d8c06733b11abac8d8b3f4489e888-07ac939cb409699a-01
tracestate cptest=v1
x-cp-canary newrelic-node--rabbitmq-rabbitmq--88747ee1

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

newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDQ4MjMzIiwidHgiOiI5OWY4OTE4MDA2ODJjZmNmIiwidHIiOiJiZTFkOGMwNjczM2IxMWFiYWM4ZDhiM2Y0NDg5ZTg4OCIsInByIjowLjY0OTE4Miwic2EiOmZhbHNlLCJ0aSI6MTc5NDMwNjAwNTMxMn19
traceparent 00-be1d8c06733b11abac8d8b3f4489e888-104f6ed5ec531785-00
tracestate 8478732@nr=0-0-8478732-572448233-104f6ed5ec531785-99f891800682cfcf-0-0.649182-1794306005312,cptest=v1
test id
newrelic-node--rabbitmq-rabbitmq--88747ee1
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent

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