newrelic-ruby

Ruby init-only newrelic_rpm9.9.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.9.0 9.9.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:54 UTC
Harness
f03aa37 · measured in backtest-newrelic-ruby-9.9.0
Requires
NEW_RELIC_LICENSE_KEY
Raw JSON
9.9.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-bd616839,team=alpha
ot-baggage-routing-key rk-bd616839
traceparent 00-681c169480dc7e2fb4f1bbfbe2c5da72-065237cc6187882d-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--http-http--d0442f33

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 eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiIxYTQxYjY5NWFkMWVkZTQ4IiwidHIiOiI2ODFjMTY5NDgwZGM3ZTJmYjRmMWJiZmJlMmM1ZGE3MiIsInNhIjpmYWxzZSwicHIiOjAuMTIyMDgzLCJ0aSI6MTc5NDMwODA1ODMxMiwiaWQiOiJkNTNiMzRjYzZhODJiM2U1In19
traceparent 00-681c169480dc7e2fb4f1bbfbe2c5da72-d53b34cc6a82b3e5-00
tracestate 8478732@nr=0-0-8478732-572432810-d53b34cc6a82b3e5-1a41b695ad1ede48-0-0.122083-1794308058312,cptest=v1
user-agent Ruby
test id
newrelic-ruby--http-http--d0442f33
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-3c2a5a0e,team=alpha
ot-baggage-routing-key rk-3c2a5a0e
traceparent 00-b58a43470c8e5ec12d7f71191ccaa210-f635ae1cd2892ae0-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--http-grpc--6837aff2

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiI5OGEwZWFmNGY2NjFkOGJlIiwidHIiOiJiNThhNDM0NzBjOGU1ZWMxMmQ3ZjcxMTkxY2NhYTIxMCIsInNhIjpmYWxzZSwicHIiOjAuMTU4NjU0LCJ0aSI6MTc5NDMwODA1ODMxNiwiaWQiOiJjZmMzZjQwNTM1MTVjODhmIn19
traceparent 00-b58a43470c8e5ec12d7f71191ccaa210-cfc3f4053515c88f-00
tracestate 8478732@nr=0-0-8478732-572432810-cfc3f4053515c88f-98a0eaf4f661d8be-0-0.158654-1794308058316,cptest=v1
user-agent grpc-ruby/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-ruby--http-grpc--6837aff2
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-2f3b1055,team=alpha
ot-baggage-routing-key rk-2f3b1055
traceparent 00-ea3bbbf4036f5a54b7b90deefe1a51ed-7be566f59991db55-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--http-kafka--dae94ac0

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-ruby--http-kafka--dae94ac0
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-e9c21d4a,team=alpha
ot-baggage-routing-key rk-e9c21d4a
traceparent 00-3db972e241092af14fa132198ad2eaf6-8e73b017e1b8b198-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--http-rabbitmq--80589f71

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

newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiI0NGUwNzQ5NGNlZDE3YjNkIiwidHIiOiIzZGI5NzJlMjQxMDkyYWYxNGZhMTMyMTk4YWQyZWFmNiIsInNhIjpmYWxzZSwicHIiOjAuMzAxOTAzLCJ0aSI6MTc5NDMwODA1ODgzNywiaWQiOiJjMGIzYjlhZjEzOTYzMzEyIn19
test id
newrelic-ruby--http-rabbitmq--80589f71
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-1c845016,team=alpha
ot-baggage-routing-key rk-1c845016
traceparent 00-4ddb7793a0eef5fa1c4e25cf2a1a5a44-cc21fa1569ef7c5a-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--grpc-http--96132b4f

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 eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiIxYTVkOWMxMmUzNGIyMDhkIiwidHIiOiI0ZGRiNzc5M2EwZWVmNWZhMWM0ZTI1Y2YyYTFhNWE0NCIsInNhIjpmYWxzZSwicHIiOjAuODg5NDExLCJ0aSI6MTc5NDMwODA1ODg3NSwiaWQiOiI2MTc2YjhlYzJmMWEyODcyIn19
traceparent 00-4ddb7793a0eef5fa1c4e25cf2a1a5a44-6176b8ec2f1a2872-00
tracestate 8478732@nr=0-0-8478732-572432810-6176b8ec2f1a2872-1a5d9c12e34b208d-0-0.889411-1794308058875,cptest=v1
user-agent Ruby
test id
newrelic-ruby--grpc-http--96132b4f
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-cb89cc0b,team=alpha
ot-baggage-routing-key rk-cb89cc0b
traceparent 00-98aeefea58429e492186168585ed73df-56b245e9da824392-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--grpc-grpc--a40168c7

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiI3YTkxMzI4M2M3NTczYmQ5IiwidHIiOiI5OGFlZWZlYTU4NDI5ZTQ5MjE4NjE2ODU4NWVkNzNkZiIsInNhIjpmYWxzZSwicHIiOjAuMTkzMjExLCJ0aSI6MTc5NDMwODA1ODkyMSwiaWQiOiI3ZDg4ZGQ0ODBiNjBhOTA3In19
traceparent 00-98aeefea58429e492186168585ed73df-7d88dd480b60a907-00
tracestate 8478732@nr=0-0-8478732-572432810-7d88dd480b60a907-7a913283c7573bd9-0-0.193211-1794308058921,cptest=v1
user-agent grpc-ruby/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-ruby--grpc-grpc--a40168c7
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-8ae01c1b,team=alpha
ot-baggage-routing-key rk-8ae01c1b
traceparent 00-7ee53d18a09cfba0a2accc5775315f0e-bb197b7ee15ef448-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--grpc-kafka--42d2ae15

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-ruby--grpc-kafka--42d2ae15
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-689d32c1,team=alpha
ot-baggage-routing-key rk-689d32c1
traceparent 00-3a2498ac66582332a61d16ec12dcc0de-c1a7a9b544415637-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--grpc-rabbitmq--f8b68c0c

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

newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiI0NDhlMzVmYjI0NmEwYmRiIiwidHIiOiIzYTI0OThhYzY2NTgyMzMyYTYxZDE2ZWMxMmRjYzBkZSIsInNhIjpmYWxzZSwicHIiOjAuODAwNjMzLCJ0aSI6MTc5NDMwODA1ODk5NSwiaWQiOiJkOGQ3ZWRjODhiMDIzY2UwIn19
test id
newrelic-ruby--grpc-rabbitmq--f8b68c0c
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-27a80b10,team=alpha
ot-baggage-routing-key rk-27a80b10
traceparent 00-ba0fdb415afb25699a7a3f902f9a117f-8e08ef7d8f20c6e1-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--kafka-http--f6c7d431

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--f6c7d431
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-0db1cecd,team=alpha
ot-baggage-routing-key rk-0db1cecd
traceparent 00-d4d80bf851fe5aad579eb0a28756ab24-cc00a08ea4a1045c-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--kafka-grpc--0361f040

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--0361f040
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-6f0e6633,team=alpha
ot-baggage-routing-key rk-6f0e6633
traceparent 00-70c6400ca7aa50e1980419e71a645650-0274924bbf40ee3d-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--kafka-kafka--47f330dd

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-ruby--kafka-kafka--47f330dd
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-0e9724de,team=alpha
ot-baggage-routing-key rk-0e9724de
traceparent 00-4f1dc15196618fb73c774d691229c6de-596af58b86123570-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--kafka-rabbitmq--d5908273

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

No headers observed.

test id
newrelic-ruby--kafka-rabbitmq--d5908273
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-a43a3497,team=alpha
ot-baggage-routing-key rk-a43a3497
traceparent 00-f8aa6cb7de965ec4caa0cc5d84614679-5bc6936d1af982ba-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--rabbitmq-http--e059f7fa

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 eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiJhZTI5ZjU5NjAxY2U3YWUyIiwidHIiOiI1YjNjNDUwNGU2NTg3NzU3MDkwZGY5MTE0ZWY2MjA5OCIsInNhIjpmYWxzZSwicHIiOjAuMjk0OTc5LCJ0aSI6MTc5NDMwODA2MTU0NSwiaWQiOiJmNTY4ZDA5Nzc3Yjk1ZTNlIn19
traceparent 00-5b3c4504e6587757090df9114ef62098-f568d09777b95e3e-00
tracestate 8478732@nr=0-0-8478732-572432810-f568d09777b95e3e-ae29f59601ce7ae2-0-0.294979-1794308061544
user-agent Ruby
test id
newrelic-ruby--rabbitmq-http--e059f7fa
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-6675b3ee,team=alpha
ot-baggage-routing-key rk-6675b3ee
traceparent 00-58dd16ffc995c0e59ba66f7f233132ec-6cfc08e72cf231bc-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--rabbitmq-grpc--6d891a9d

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiI2NjI2ZWY3NmQzNzFjMjc0IiwidHIiOiJmNWI4MDNkMjljY2Y4ZDEyYjIzODUyNmEzM2MzNjAxNiIsInNhIjpmYWxzZSwicHIiOjAuMTQ5ODU0LCJ0aSI6MTc5NDMwODA2MjA0MSwiaWQiOiI5ZWU5YTU0OTYyNDlkNTBjIn19
traceparent 00-f5b803d29ccf8d12b238526a33c36016-9ee9a5496249d50c-00
tracestate 8478732@nr=0-0-8478732-572432810-9ee9a5496249d50c-6626ef76d371c274-0-0.149854-1794308062041
user-agent grpc-ruby/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-ruby--rabbitmq-grpc--6d891a9d
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-79770543,team=alpha
ot-baggage-routing-key rk-79770543
traceparent 00-6d9505f54136dd671963bb2748509e31-6751f9b59ddfcffd-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--rabbitmq-kafka--5c375e44

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-ruby--rabbitmq-kafka--5c375e44
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-2eae043a,team=alpha
ot-baggage-routing-key rk-2eae043a
traceparent 00-300fc071afd76a675d617cfa44e3a2a7-01458b5586c831c8-01
tracestate cptest=v1
x-cp-canary newrelic-ruby--rabbitmq-rabbitmq--cc80a46e

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

newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDMyODEwIiwidHgiOiIzMDlhZTI1Mzg5ODk0NzQ1IiwidHIiOiIxYjJjYTZjNzc4ODc2ZmViOWEwZGM0N2RmOTc2ZjBiNyIsInNhIjpmYWxzZSwicHIiOjAuOTA4NzAxLCJ0aSI6MTc5NDMwODA2MzA0MywiaWQiOiI5NDE1MWI3ZTE2OTY0MmVlIn19
test id
newrelic-ruby--rabbitmq-rabbitmq--cc80a46e
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent

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