newrelic-ruby

Ruby init-only newrelic_rpm9.11.0

attach require 'newrelic_rpm'

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

Not compared with the uninstrumented Ruby relay (no run on this site measured it on ruby 3.3.13).

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.

4 cells affected

newrelic-traceparent-flags-own-sampling

New Relic Ruby: bunny publish injects only the legacy newrelic header, not W3C headers

open newrelic_rpm's bunny publish instrumentation emits the vendor newrelic header only; traceparent and tracestate are absent on every *->rabbitmq leg.

newrelic_rpm 10.7.1 is 12/16 on W3C headers but 16/16 on the vendor header: everything works, but bunny publish injects only the legacy newrelic header. On all four *->rabbitmq boundaries traceparent/tracestate are absent, so a W3C-only consumer downstream (or another vendor's agent) sees nothing. Consume (rabbitmq->*) accepts and continues correctly.

We found no upstream issue for this asymmetry. Workaround: insert the W3C headers into the message headers yourself with the agent's distributed-tracing API before publishing.

8 cells affected

newrelic-ruby-bunny-publish-vendor-header-only

Versions measured

Tracer
newrelic_rpm 9.11.0 9.11.0 on rubygems github
Runtime
ruby 3.3.13
Setup tier
init-only A boot-file initializer loads and configures the tool before application code runs (Ruby's require+configure pattern, Elastic Python's middleware). Request-path code is untouched.
Attach
require 'newrelic_rpm'
Relay source
relays/ruby/gemfiles/newrelic
Ran at
10 Nov 2026, 10:19 UTC
Harness
374f21d · measured in backtest-newrelic-ruby-9.11.0
Requires
NEW_RELIC_LICENSE_KEY
Raw JSON
9.11.0.json → variants[id = "newrelic-ruby"]

Libraries

grpcgrpc 1.83.1
http-clientnet/http (stdlib)
http-serversinatra 4.2.1 (puma 8.0.2)
kafkardkafka 0.29.1
rabbitmqbunny 3.3.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-3937841a,team=alpha
ot-baggage-routing-key rk-3937841a
traceparent 00-0f0b6c13e5055826e1e07de2eda8671f-a1f1346b84828dd4-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--http-http--6d5c0df5

Observed at the sink on the outbound HTTP request headers

accept */*
accept-encoding gzip;q=1.0,deflate;q=0.6,identity;q=0.3
content-length 48
content-type application/json
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiI3YjI0ODNiZWU1ZTk5NThmIiwidHIiOiIwZjBiNmMxM2U1MDU1ODI2ZTFlMDdkZTJlZGE4NjcxZiIsInNhIjpmYWxzZSwicHIiOjAuMjQzMDEzLCJ0aSI6MTc5NDMwNTk0MDkyNywiaWQiOiJjZDA3OGZkZWYzMmY0ZWYzIn19
traceparent 00-0f0b6c13e5055826e1e07de2eda8671f-cd078fdef32f4ef3-00
tracestate 8478732@nr=0-0-8478732-572432810-cd078fdef32f4ef3-7b2483bee5e9958f-0-0.243013-1794305940927,cptest=v1
user-agent Ruby
test id
newrelic-ruby--http-http--6d5c0df5
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-306c2b50,team=alpha
ot-baggage-routing-key rk-306c2b50
traceparent 00-c8b0f4e93f261a374462b044effed816-9d5d036fd97ae9a8-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--http-grpc--f9a8bcea

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiJlMGMwODc0YjBlZGNkOWQ0IiwidHIiOiJjOGIwZjRlOTNmMjYxYTM3NDQ2MmIwNDRlZmZlZDgxNiIsInNhIjpmYWxzZSwicHIiOjAuMTU5Njk5LCJ0aSI6MTc5NDMwNTk0MDkzMSwiaWQiOiJhODM2MzQ4ZGNkYTY2OGZhIn19
traceparent 00-c8b0f4e93f261a374462b044effed816-a836348dcda668fa-00
tracestate 8478732@nr=0-0-8478732-572432810-a836348dcda668fa-e0c0874b0edcd9d4-0-0.159699-1794305940931,cptest=v1
user-agent grpc-ruby/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-ruby--http-grpc--f9a8bcea
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-11f32a7b,team=alpha
ot-baggage-routing-key rk-11f32a7b
traceparent 00-936d1dbb6161ad3a23afd8ca368a171d-2490311bc617ff8b-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--http-kafka--0f8ec714

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-ruby--http-kafka--0f8ec714
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-9ecd29a7,team=alpha
ot-baggage-routing-key rk-9ecd29a7
traceparent 00-80ca301e5c52d819bdda0c1f4199b798-8f5b9feb99f3f3f9-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--http-rabbitmq--0f90a12d

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

newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiIyMzZhYjBhZWMyMGRhYmFlIiwidHIiOiI4MGNhMzAxZTVjNTJkODE5YmRkYTBjMWY0MTk5Yjc5OCIsInNhIjpmYWxzZSwicHIiOjAuNzQ2MzI2LCJ0aSI6MTc5NDMwNTk0MTQ0OSwiaWQiOiJkZjk4ZmJhMWQ1NDVhOWIzIn19
test id
newrelic-ruby--http-rabbitmq--0f90a12d
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
gRPC HTTP baggage tracestate traceparent ot-baggage delivered via http

Seeded on the inbound gRPC metadata

baggage routing-key=rk-abd4f7d9,team=alpha
ot-baggage-routing-key rk-abd4f7d9
traceparent 00-52311878054435dc77dab761da10a84f-6be4ad90cf6dafae-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--grpc-http--f1dc4f32

Observed at the sink on the outbound HTTP request headers

accept */*
accept-encoding gzip;q=1.0,deflate;q=0.6,identity;q=0.3
content-length 48
content-type application/json
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiI4YjZjNTAwMGQwNzljYmU4IiwidHIiOiI1MjMxMTg3ODA1NDQzNWRjNzdkYWI3NjFkYTEwYTg0ZiIsInNhIjpmYWxzZSwicHIiOjAuMTE1NDExLCJ0aSI6MTc5NDMwNTk0MTQ3MywiaWQiOiIwMjBiYTVhMzhlNGRkY2FjIn19
traceparent 00-52311878054435dc77dab761da10a84f-020ba5a38e4ddcac-00
tracestate 8478732@nr=0-0-8478732-572432810-020ba5a38e4ddcac-8b6c5000d079cbe8-0-0.115411-1794305941473,cptest=v1
user-agent Ruby
test id
newrelic-ruby--grpc-http--f1dc4f32
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-05c2934e,team=alpha
ot-baggage-routing-key rk-05c2934e
traceparent 00-00108dcc5d5f8ae28ba146959a238a27-64bf4fa14c19b793-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--grpc-grpc--359dd947

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiJiNmU1ODBhMjI2ODI4NmU5IiwidHIiOiIwMDEwOGRjYzVkNWY4YWUyOGJhMTQ2OTU5YTIzOGEyNyIsInNhIjpmYWxzZSwicHIiOjAuNTQ5MjQsInRpIjoxNzk0MzA1OTQxNTA3LCJpZCI6IjYyODlmNjY1YTZmOTUwNzEifX0=
traceparent 00-00108dcc5d5f8ae28ba146959a238a27-6289f665a6f95071-00
tracestate 8478732@nr=0-0-8478732-572432810-6289f665a6f95071-b6e580a2268286e9-0-0.549240-1794305941506,cptest=v1
user-agent grpc-ruby/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-ruby--grpc-grpc--359dd947
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-b0d60cd8,team=alpha
ot-baggage-routing-key rk-b0d60cd8
traceparent 00-1fac9e493e8ee9cc65355f521d98aa14-e49411ae6081245d-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--grpc-kafka--968a54f2

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-ruby--grpc-kafka--968a54f2
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-4b30bdce,team=alpha
ot-baggage-routing-key rk-4b30bdce
traceparent 00-3b1f68b87e004b1747f7a4afb8cb1a9d-352655aa125fa647-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--grpc-rabbitmq--afdf1557

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

newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiIyMzM0ZDAyNTAyYjJlMTljIiwidHIiOiIzYjFmNjhiODdlMDA0YjE3NDdmN2E0YWZiOGNiMWE5ZCIsInNhIjpmYWxzZSwicHIiOjAuNjYxNTY4LCJ0aSI6MTc5NDMwNTk0MTU3NSwiaWQiOiI2NjI5MDMxZTg3NzczNTc1In19
test id
newrelic-ruby--grpc-rabbitmq--afdf1557
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
Kafka HTTP baggage tracestate traceparent ot-baggage delivered via http

Seeded on the inbound Kafka record headers

baggage routing-key=rk-b609e3db,team=alpha
ot-baggage-routing-key rk-b609e3db
traceparent 00-3cda42db0c3532ae4e81a0da0829035c-eedc947ceb73fe3e-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--kafka-http--8bcf6d95

Observed at the sink on the outbound HTTP request headers

accept */*
accept-encoding gzip;q=1.0,deflate;q=0.6,identity;q=0.3
content-length 49
content-type application/json
user-agent Ruby
test id
newrelic-ruby--kafka-http--8bcf6d95
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-792a346e,team=alpha
ot-baggage-routing-key rk-792a346e
traceparent 00-e9503b3f7dda8194dcce2a65ba7d253f-b5ed5269f6edbcc8-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--kafka-grpc--2846b312

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
user-agent grpc-ruby/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-ruby--kafka-grpc--2846b312
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-9e93c1e4,team=alpha
ot-baggage-routing-key rk-9e93c1e4
traceparent 00-4c3517fa1abc8585ae8bc313b296a9cc-f0fb38fd57eef5e0-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--kafka-kafka--314f0542

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-ruby--kafka-kafka--314f0542
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-258d1289,team=alpha
ot-baggage-routing-key rk-258d1289
traceparent 00-e080e57f25b3b3d8348eac2d1c481cdb-35d527393de7428e-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--kafka-rabbitmq--3b082c40

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

No headers observed.

test id
newrelic-ruby--kafka-rabbitmq--3b082c40
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-833ca3b5,team=alpha
ot-baggage-routing-key rk-833ca3b5
traceparent 00-180a21a297254aecf7d5710df4f8f16b-77d4bb64c73a1d0e-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--rabbitmq-http--42e2f697

Observed at the sink on the outbound HTTP request headers

accept */*
accept-encoding gzip;q=1.0,deflate;q=0.6,identity;q=0.3
content-length 52
content-type application/json
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiIxOTY0ZWRlNjI5MzdkOTc4IiwidHIiOiJjNjU2ZmNiN2JlZmNlOTRkNjRmOTg4MTM2MGU5MjhlMyIsInNhIjpmYWxzZSwicHIiOjAuMjYyOTcyLCJ0aSI6MTc5NDMwNTk0NDYyNywiaWQiOiIzMjI5Y2Y1M2VhOTE0ZDdiIn19
traceparent 00-c656fcb7befce94d64f9881360e928e3-3229cf53ea914d7b-00
tracestate 8478732@nr=0-0-8478732-572432810-3229cf53ea914d7b-1964ede62937d978-0-0.262972-1794305944627
user-agent Ruby
test id
newrelic-ruby--rabbitmq-http--42e2f697
raw statuses
baggage=absenttracestate=present_entry_losttraceparent=new_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-194e87ce,team=alpha
ot-baggage-routing-key rk-194e87ce
traceparent 00-3e0bb641a9affb841ca95cfdf4407bb7-062c866fce4f6916-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--rabbitmq-grpc--acea0495

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiIzOTgyYjIyYzVlNjJlZDFhIiwidHIiOiIzN2FhZjYyMGY5M2U5OThlOGM4MzIxNWVkZGE3OTAyZSIsInNhIjpmYWxzZSwicHIiOjAuOTE1NTU5LCJ0aSI6MTc5NDMwNTk0NTEyNiwiaWQiOiJhMTkxZWM3MzgyY2Q4YTYyIn19
traceparent 00-37aaf620f93e998e8c83215edda7902e-a191ec7382cd8a62-00
tracestate 8478732@nr=0-0-8478732-572432810-a191ec7382cd8a62-3982b22c5e62ed1a-0-0.915559-1794305945126
user-agent grpc-ruby/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-ruby--rabbitmq-grpc--acea0495
raw statuses
baggage=absenttracestate=present_entry_losttraceparent=new_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-03bb624c,team=alpha
ot-baggage-routing-key rk-03bb624c
traceparent 00-fbe33ffd684cdf9177957668ba18c74d-951e3623c102e592-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--rabbitmq-kafka--56dfbd56

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-ruby--rabbitmq-kafka--56dfbd56
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-c47ad259,team=alpha
ot-baggage-routing-key rk-c47ad259
traceparent 00-08baf61f03c4ab0a3c15faa10408a219-74bb356e58c92a59-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--rabbitmq-rabbitmq--271cdd09

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

newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiI1N2QyMzRhZmI4ZTQ1ODFjIiwidHIiOiI0MjUwMGVkM2MyYWI0Y2YxYzk0MTE3Y2FhNjkzNzJjNCIsInNhIjpmYWxzZSwicHIiOjAuMTAwODkxLCJ0aSI6MTc5NDMwNTk0NjEzMCwiaWQiOiJhNTNkYjQ2NmY4NjU4MzE5In19
test id
newrelic-ruby--rabbitmq-rabbitmq--271cdd09
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent

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