newrelic-java

Java zero-code newrelic-agent9.4.0

attach -javaagent:newrelic.jar

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

Explanations

OpenTelemetry, Elastic APM and New Relic never implemented the OpenTracing-era ot-baggage-* headers

by-design ot-baggage-* is a legacy OpenTracing convention; OpenTelemetry, Elastic APM and New Relic each define their propagation header set without it.

The seeded ot-baggage-routing-key header is ignored — neither extracted nor re-emitted — by every OpenTelemetry, Elastic and New Relic variant on every delivered boundary. None of these tools ever emitted the OpenTracing header format: OpenTelemetry standardised on W3C baggage; 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.

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.

356 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. If you route on baggage, New Relic contributes nothing on any protocol — carry it as an application header yourself.

108 cells affected

newrelic-no-baggage

New Relic Java: Kafka DT header injection is opt-in via a class_transformer setting

config kafka-clients instrumentation is telemetry-only by default; header injection requires enabling the kafka-clients-spans-0.11.0.0 module in newrelic.yml.

On newrelic-agent 9.4.0 with default configuration, every *->kafka leg injects nothing. New Relic's Kafka docs make DT header injection opt-in: class_transformer: com.newrelic.instrumentation.kafka-clients-spans-0.11.0.0: enabled: true, warning that "the instrumentation adds a 150 to 200 byte payload to message headers… we recommend testing… before enabling them in production". The module exists in the agent repository.

The harness has not measured the opt-in (backlog: a newrelic-java-kafkaspans variant), so whether it makes these cells pass is documented, not verified. kafka->kafka and rabbitmq->kafka also fail on the consume side (see newrelic-java-messaging-inbound-never-accepted).

8 cells affected

newrelic-java-kafka-dt-headers-opt-in

New Relic Java: Kafka consumers and spring-rabbit listeners never accept inbound DT headers

open No spring-rabbit module: DT accept runs on the AMQP connection thread, not the listener's thread; the Kafka consumer instrumentation never accepts DT headers.

Every messaging-inbound row is dead on newrelic-agent 9.4.0: kafka->* and rabbitmq->* outbound calls carry no headers at all (no transaction is active, so nothing is injected). spring-rabbit publish injects fine (http->rabbitmq, grpc->rabbitmq pass).

Mechanism found in source: the agent has only rabbit-amqp-2.7.0/5.0.0 and spring-kafka modules — no spring-rabbit module at all. DT accept is woven around Consumer.handleDelivery inside a transaction on the AMQP connection thread, while spring-rabbit's listener container processes the message on a different thread, outside that transaction. The Kafka consumer never accepts either.

Workaround: in the listener, start a transaction with the New Relic agent API and accept the message headers into it manually. No upstream issue covers either gap — filing candidate.

16 cells affected

newrelic-java-messaging-inbound-never-accepted

Versions in this run

Tracer
com.newrelic.agent.java:newrelic-agent 9.4.0 this version 9.4.0 on maven github
Runtime
java 17.0.20
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
-javaagent:newrelic.jar
Relay source
relays/java
Ran at
7 Sept 2026, 10:57 UTC
Harness
commit not recorded · run run-2026-09-07
Requires
NEW_RELIC_LICENSE_KEY
Raw JSON
run-2026-09-07.json → variants[id = "newrelic-java"]

Libraries

grpcgrpc-java
http-clientRestTemplate (HttpURLConnection)
kafkaspring-kafka
kafka-clients3.7.2
rabbitmqspring-rabbit (amqp-client 5.21.0)
spring-boot3.3.13

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-a247f87e,team=alpha
ot-baggage-routing-key rk-a247f87e
traceparent 00-414450081fc21ec0d572ec7ec0183bc3-81f6ed85aa0ac006-01
tracestate cptest=v1
x-cp-canary newrelic-java--http-http--e94f0cf7

Observed at the sink on the outbound HTTP request headers

accept text/plain, application/json, application/*+json, */*
connection keep-alive
content-type application/json
newrelic eyJkIjp7ImFjIjoiODQ3ODczMiIsInByIjoyLjAxMzkyNywidHgiOiI3MjlmNjk4ZjA2Y2M5YWVjIiwidGkiOjE3ODg3Nzg2NzU0MDIsInR5IjoiQXBwIiwiaWQiOiI3MzI2NDM3NDk5OTJjZjYzIiwidHIiOiI0MTQ0NTAwODFmYzIxZWMwZDU3MmVjN2VjMDE4M2JjMyIsInNhIjp0cnVlLCJhcCI6IjU3MjQ0NDM2MSJ9LCJ2IjpbMCwxXX0=
traceparent 00-414450081fc21ec0d572ec7ec0183bc3-732643749992cf63-01
tracestate 8478732@nr=0-0-8478732-572444361-732643749992cf63-729f698f06cc9aec-1-2.013927-1788778675401,cptest=v1
user-agent Java/17.0.20
test id
newrelic-java--http-http--e94f0cf7
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-0247fa45,team=alpha
ot-baggage-routing-key rk-0247fa45
traceparent 00-076ec3e927a039eb3a476bbd6dfccba2-fddcbd865a820209-01
tracestate cptest=v1
x-cp-canary newrelic-java--http-grpc--ebdc77a9

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding gzip
newrelic eyJkIjp7ImFjIjoiODQ3ODczMiIsInByIjoyLjY4MDQ3MiwidHgiOiI0ODY2OWQ0YTNlZTk0MGIxIiwidGkiOjE3ODg3Nzg2NzU0MDksInR5IjoiQXBwIiwiaWQiOiIwYzNiNjU5YzRkOTliMzIyIiwidHIiOiIwNzZlYzNlOTI3YTAzOWViM2E0NzZiYmQ2ZGZjY2JhMiIsInNhIjp0cnVlLCJhcCI6IjU3MjQ0NDM2MSJ9LCJ2IjpbMCwxXX0=
traceparent 00-076ec3e927a039eb3a476bbd6dfccba2-0c3b659c4d99b322-01
tracestate 8478732@nr=0-0-8478732-572444361-0c3b659c4d99b322-48669d4a3ee940b1-1-2.68472-1788778675409,cptest=v1
user-agent grpc-java-netty/1.66.0
test id
newrelic-java--http-grpc--ebdc77a9
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-c2b13c58,team=alpha
ot-baggage-routing-key rk-c2b13c58
traceparent 00-ca76b0cd0630ac48e4032a05fc411137-a778c69d8f8e8805-01
tracestate cptest=v1
x-cp-canary newrelic-java--http-kafka--92de6b9b

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-java--http-kafka--92de6b9b
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-52c82632,team=alpha
ot-baggage-routing-key rk-52c82632
traceparent 00-20ca7a12b2a8a5484bef3bea450f72a3-cc036f94a863f70e-01
tracestate cptest=v1
x-cp-canary newrelic-java--http-rabbitmq--63f06327

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

newrelic eyJkIjp7ImFjIjoiODQ3ODczMiIsInByIjoyLjA4NTA4OCwidHgiOiIzN2EyYTg2ZGZmODQxYzk4IiwidGkiOjE3ODg3Nzg2NzU5MjcsInR5IjoiQXBwIiwiaWQiOiJlM2U4YWRmOGYzYTIwMmYzIiwidHIiOiIyMGNhN2ExMmIyYThhNTQ4NGJlZjNiZWE0NTBmNzJhMyIsInNhIjp0cnVlLCJhcCI6IjU3MjQ0NDM2MSJ9LCJ2IjpbMCwxXX0=
traceparent 00-20ca7a12b2a8a5484bef3bea450f72a3-e3e8adf8f3a202f3-01
tracestate 8478732@nr=0-0-8478732-572444361-e3e8adf8f3a202f3-37a2a86dff841c98-1-2.085088-1788778675927,cptest=v1
test id
newrelic-java--http-rabbitmq--63f06327
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-5db24ef7,team=alpha
ot-baggage-routing-key rk-5db24ef7
traceparent 00-5fd8587e1d538e641dd831e8b6d9a71b-f2cc72770d4cc8ef-01
tracestate cptest=v1
x-cp-canary newrelic-java--grpc-http--7fa3d927

Observed at the sink on the outbound HTTP request headers

accept text/plain, application/json, application/*+json, */*
connection keep-alive
content-type application/json
newrelic eyJkIjp7ImFjIjoiODQ3ODczMiIsInByIjoyLjMxNDE5MiwidHgiOiI1ODkyZGQxMjRiNzVjNjk4IiwidGkiOjE3ODg3Nzg2NzY0NjgsInR5IjoiQXBwIiwiaWQiOiI1MzYzYTEyMjI1YzFjOTMxIiwidHIiOiI1ZmQ4NTg3ZTFkNTM4ZTY0MWRkODMxZThiNmQ5YTcxYiIsInNhIjp0cnVlLCJhcCI6IjU3MjQ0NDM2MSJ9LCJ2IjpbMCwxXX0=
traceparent 00-5fd8587e1d538e641dd831e8b6d9a71b-5363a12225c1c931-01
tracestate 8478732@nr=0-0-8478732-572444361-5363a12225c1c931-5892dd124b75c698-1-2.314192-1788778676467,cptest=v1
user-agent Java/17.0.20
test id
newrelic-java--grpc-http--7fa3d927
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-698878ad,team=alpha
ot-baggage-routing-key rk-698878ad
traceparent 00-05343a7d4ce68d0c8be7731a6b892eb6-ac560196b2596832-01
tracestate cptest=v1
x-cp-canary newrelic-java--grpc-grpc--c2512f05

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding gzip
newrelic eyJkIjp7ImFjIjoiODQ3ODczMiIsInByIjoyLjMzMzE2NywidHgiOiI0NWM2ZDA5YmUzODhhNDU3IiwidGkiOjE3ODg3Nzg2NzY0ODksInR5IjoiQXBwIiwiaWQiOiJiZmFjMDg1M2Q4NGY1ZGJhIiwidHIiOiIwNTM0M2E3ZDRjZTY4ZDBjOGJlNzczMWE2Yjg5MmViNiIsInNhIjp0cnVlLCJhcCI6IjU3MjQ0NDM2MSJ9LCJ2IjpbMCwxXX0=
traceparent 00-05343a7d4ce68d0c8be7731a6b892eb6-bfac0853d84f5dba-01
tracestate 8478732@nr=0-0-8478732-572444361-bfac0853d84f5dba-45c6d09be388a457-1-2.333167-1788778676489,cptest=v1
user-agent grpc-java-netty/1.66.0
test id
newrelic-java--grpc-grpc--c2512f05
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-661fec1a,team=alpha
ot-baggage-routing-key rk-661fec1a
traceparent 00-ef05b5d06bff6a0be13e1b415dea374f-a79f400db349e602-01
tracestate cptest=v1
x-cp-canary newrelic-java--grpc-kafka--a77afe4b

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-java--grpc-kafka--a77afe4b
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-f82c28b4,team=alpha
ot-baggage-routing-key rk-f82c28b4
traceparent 00-cdf0270ed1856f5b8dd9d0b14101a740-dd459e4eec56cb2f-01
tracestate cptest=v1
x-cp-canary newrelic-java--grpc-rabbitmq--ccfb5130

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

newrelic eyJkIjp7ImFjIjoiODQ3ODczMiIsInByIjoyLjk5NDk3NiwidHgiOiJlYjA2NDQ3MGQyOGE1ODdkIiwidGkiOjE3ODg3Nzg2NzcwMTMsInR5IjoiQXBwIiwiaWQiOiIzYjRmNjE2N2QwYjM5NzIzIiwidHIiOiJjZGYwMjcwZWQxODU2ZjViOGRkOWQwYjE0MTAxYTc0MCIsInNhIjp0cnVlLCJhcCI6IjU3MjQ0NDM2MSJ9LCJ2IjpbMCwxXX0=
traceparent 00-cdf0270ed1856f5b8dd9d0b14101a740-3b4f6167d0b39723-01
tracestate 8478732@nr=0-0-8478732-572444361-3b4f6167d0b39723-eb064470d28a587d-1-2.994976-1788778677013,cptest=v1
test id
newrelic-java--grpc-rabbitmq--ccfb5130
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-6c4cf332,team=alpha
ot-baggage-routing-key rk-6c4cf332
traceparent 00-08e86e743a8f47613c6604cc2da55168-d2635726ca734e0b-01
tracestate cptest=v1
x-cp-canary newrelic-java--kafka-http--eebf5018

Observed at the sink on the outbound HTTP request headers

accept text/plain, application/json, application/*+json, */*
connection keep-alive
content-type application/json
user-agent Java/17.0.20
test id
newrelic-java--kafka-http--eebf5018
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-99d4dc76,team=alpha
ot-baggage-routing-key rk-99d4dc76
traceparent 00-18566fcd47f74cc7afeba4faf206ece2-2f57d49130970525-01
tracestate cptest=v1
x-cp-canary newrelic-java--kafka-grpc--5b631ab7

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding gzip
user-agent grpc-java-netty/1.66.0
test id
newrelic-java--kafka-grpc--5b631ab7
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-731fb0de,team=alpha
ot-baggage-routing-key rk-731fb0de
traceparent 00-a2434dcbcaf2bd44b64f2ec0bcd95805-0c2d211ffafff35a-01
tracestate cptest=v1
x-cp-canary newrelic-java--kafka-kafka--8248d5ed

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-java--kafka-kafka--8248d5ed
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-91f1d264,team=alpha
ot-baggage-routing-key rk-91f1d264
traceparent 00-e465c6fe7090cce9426c153322ccf777-baa577a28943eeb8-01
tracestate cptest=v1
x-cp-canary newrelic-java--kafka-rabbitmq--36e87631

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

No headers observed.

test id
newrelic-java--kafka-rabbitmq--36e87631
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-46a8912f,team=alpha
ot-baggage-routing-key rk-46a8912f
traceparent 00-02153442dea3f6480a6cdad20a86ea0e-b169c236fdedc591-01
tracestate cptest=v1
x-cp-canary newrelic-java--rabbitmq-http--e2b9f7fe

Observed at the sink on the outbound HTTP request headers

accept text/plain, application/json, application/*+json, */*
connection keep-alive
content-type application/json
user-agent Java/17.0.20
test id
newrelic-java--rabbitmq-http--e2b9f7fe
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_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-c5c40b07,team=alpha
ot-baggage-routing-key rk-c5c40b07
traceparent 00-d750d3d221094759e83ebbf653b8676d-f8f2d18387cbda6c-01
tracestate cptest=v1
x-cp-canary newrelic-java--rabbitmq-grpc--214cb687

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding gzip
user-agent grpc-java-netty/1.66.0
test id
newrelic-java--rabbitmq-grpc--214cb687
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_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-82b7e33b,team=alpha
ot-baggage-routing-key rk-82b7e33b
traceparent 00-b3d0c0ec97eee4165e2516be29b7e554-ade4c4b3245bd5be-01
tracestate cptest=v1
x-cp-canary newrelic-java--rabbitmq-kafka--fb7a9838

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-java--rabbitmq-kafka--fb7a9838
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-c77304ca,team=alpha
ot-baggage-routing-key rk-c77304ca
traceparent 00-3e69f0d190b12eaa26e0fb374bfcdd16-c8b8f94be6c26596-01
tracestate cptest=v1
x-cp-canary newrelic-java--rabbitmq-rabbitmq--6a03b437

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

No headers observed.

test id
newrelic-java--rabbitmq-rabbitmq--6a03b437
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent

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