elastic-ruby

Ruby init-only elastic-apm (gem)4.1.0

attach require 'elastic_apm'; ElasticAPM.start

2/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

Elastic Node, Python, Ruby and PHP agents do not propagate W3C baggage on any boundary

open Only Elastic's Java agent (and .NET over HTTP/gRPC) implements the baggage propagation the agent spec mandates; these agents drop it on every boundary.

Elastic's agent spec mandates baggage support, but only the Java agent delivers it end-to-end. elastic-apm-node 4.18.0 has no W3C baggage implementation; elastic-apm (Python) 6.26.2, elastic-apm (Ruby) 4.9.0 and elastic_apm (PHP) 1.17.0 measure baggage absent on every boundary, including http->http where traceparent/tracestate continue. The seeded member is neither extracted nor re-emitted.

Outside Java, Elastic APM cannot currently carry application baggage across protocol boundaries; a user must forward the baggage header as an application header themselves. Elastic's Node distributed-tracing docs likewise describe manual traceparent passing only (no tracestate or baggage). We found no upstream issue requesting W3C baggage in these agents.

16 cells affected

elastic-agents-no-w3c-baggage

Elastic Ruby: gRPC support is experimental and manual, with no zero-code client or server path

open The Ruby agent instruments gRPC only via a hand-added ClientInterceptor at stub creation; the init-only setup adds none, and there is no server-side path.

elastic-apm (Ruby) 4.9.0 passes http->http only. gRPC support exists but is experimental and manual: "To instrument a client, add the ElasticAPM::GRPC::ClientInterceptor as an interceptor at Stub creation". The harness's init-only setup (require 'elastic_apm'; ElasticAPM.start) adds no interceptor, so *->grpc carries nothing, and with no server-side instrumentation grpc->* runs with no transaction and injects nothing on the outbound leg.

What a user can do: wire the client interceptor into every stub. Nothing documented covers the server side.

14 cells affected

elastic-ruby-grpc-manual-only

Elastic Ruby: no bunny or client-level Kafka instrumentation, and the Racecar spy never reads headers

open The Ruby agent covers Kafka only via Racecar (whose spy never reads a trace_parent) and RabbitMQ only via Sneakers; rdkafka and bunny are uninstrumented.

Nothing is injected on *->kafka or *->rabbitmq and nothing is extracted on kafka->* or rabbitmq->* on elastic-apm (Ruby) 4.9.0. The supported technologies page lists RabbitMQ only as "Sneakers (Experimental)" and no Kafka client library at all; Kafka is covered only via the Racecar framework.

Even under Racecar, consume-side continuation is impossible: the racecar spy (lib/elastic_apm/spies/racecar.rb, added by PR #1284) calls ElasticAPM.start_transaction(kind, TYPE) with no trace_parent, so it never reads message headers.

No upstream issues request bunny or client-level Kafka (rdkafka/ruby-kafka) instrumentation. Workaround: inject traceparent/tracestate into message headers manually and start the consumer transaction with the received trace_parent.

24 cells affected

elastic-ruby-no-client-kafka-or-bunny

Versions measured

Tracer
elastic-apm 4.1.0 4.1.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 'elastic_apm'; ElasticAPM.start
Relay source
relays/ruby/gemfiles/elastic
Ran at
10 Nov 2026, 07:47 UTC
Harness
9b99070 · measured in backtest-elastic-ruby-4.1.0
Raw JSON
4.1.0.json → variants[id = "elastic-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

Library defaults: no propagation-related environment set.

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-4ccdddd4,team=alpha
ot-baggage-routing-key rk-4ccdddd4
traceparent 00-c18820da17c86d76dbeb35d1ae99731e-34d5de40e2e2f948-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-http--51f98c86

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 47
content-type application/json
elastic-apm-traceparent 00-c18820da17c86d76dbeb35d1ae99731e-c60cf6bdd876df8d-01
traceparent 00-c18820da17c86d76dbeb35d1ae99731e-c60cf6bdd876df8d-01
tracestate cptest=v1,
user-agent Ruby
test id
elastic-ruby--http-http--51f98c86
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-71c8563e,team=alpha
ot-baggage-routing-key rk-71c8563e
traceparent 00-dff4697d386bb8f26e529cf166bb546f-e2dd344af6725659-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-grpc--799a3071

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
elastic-ruby--http-grpc--799a3071
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
HTTP Kafka baggage tracestate traceparent ot-baggage delivered via kafka

Seeded on the inbound HTTP request headers

baggage routing-key=rk-131f84b8,team=alpha
ot-baggage-routing-key rk-131f84b8
traceparent 00-3f66191f9ea3560c5470902669c16fc2-6bb9cc41a83a5389-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-kafka--57a1df4a

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--http-kafka--57a1df4a
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-7ab84429,team=alpha
ot-baggage-routing-key rk-7ab84429
traceparent 00-0a34387668fb12a339bb97793c38065c-20648674732dcfb0-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-rabbitmq--49a90b04

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

No headers observed.

test id
elastic-ruby--http-rabbitmq--49a90b04
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-cf9b187f,team=alpha
ot-baggage-routing-key rk-cf9b187f
traceparent 00-b9f0d2f1f53d52e2169946893e6e8679-fd5d069311b74dbc-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-http--afe9ba78

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 47
content-type application/json
user-agent Ruby
test id
elastic-ruby--grpc-http--afe9ba78
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
gRPC gRPC baggage tracestate traceparent ot-baggage delivered via grpc

Seeded on the inbound gRPC metadata

baggage routing-key=rk-1db8bb02,team=alpha
ot-baggage-routing-key rk-1db8bb02
traceparent 00-266da53d6114189a8bb63ed1086a2eb2-64cc50bcd04ad68a-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-grpc--b857ccc6

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
elastic-ruby--grpc-grpc--b857ccc6
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
gRPC Kafka baggage tracestate traceparent ot-baggage delivered via kafka

Seeded on the inbound gRPC metadata

baggage routing-key=rk-822c8555,team=alpha
ot-baggage-routing-key rk-822c8555
traceparent 00-457ab0cf6227474021e95959a4d80481-63cfee9133f408e1-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-kafka--f7de0791

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--grpc-kafka--f7de0791
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-90d106ab,team=alpha
ot-baggage-routing-key rk-90d106ab
traceparent 00-b61aec7d88d98c63cda970d38576ccb5-baa1a3522e02c2e6-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-rabbitmq--1cdc6eb0

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

No headers observed.

test id
elastic-ruby--grpc-rabbitmq--1cdc6eb0
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-0fecb8bf,team=alpha
ot-baggage-routing-key rk-0fecb8bf
traceparent 00-075b523a6e4d647d323693c62ed6b2f7-ef949f7db34e2d02-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-http--a326b28a

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
user-agent Ruby
test id
elastic-ruby--kafka-http--a326b28a
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-38c23564,team=alpha
ot-baggage-routing-key rk-38c23564
traceparent 00-d3efcd3ffb1389f489c9c8b28621ae1b-c39c35d87d807ad8-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-grpc--70ee5f4d

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
elastic-ruby--kafka-grpc--70ee5f4d
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-ff50b084,team=alpha
ot-baggage-routing-key rk-ff50b084
traceparent 00-0a79ef92f4fd5127540c06d0e9c0a23d-4ff10012a638c8b7-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-kafka--2f66dd63

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--kafka-kafka--2f66dd63
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-87aaea9d,team=alpha
ot-baggage-routing-key rk-87aaea9d
traceparent 00-7fad9fe8d8f4df3008109a655435eb53-2a3ba88d49300ecd-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-rabbitmq--b86dce5a

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

No headers observed.

test id
elastic-ruby--kafka-rabbitmq--b86dce5a
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-2898d326,team=alpha
ot-baggage-routing-key rk-2898d326
traceparent 00-8fa558a02ead68d76d00cf6951d0c3a2-1bda34a6703e04b2-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-http--730aeca0

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 51
content-type application/json
user-agent Ruby
test id
elastic-ruby--rabbitmq-http--730aeca0
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-adcd111e,team=alpha
ot-baggage-routing-key rk-adcd111e
traceparent 00-30042eea96e89a4cd9b5eca4c60d6ab5-329746f93e84c791-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-grpc--58045c6a

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
elastic-ruby--rabbitmq-grpc--58045c6a
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-eba7ec93,team=alpha
ot-baggage-routing-key rk-eba7ec93
traceparent 00-d6aee2735ee00bc5bcb0053fa62faa8c-a60170a4e41df087-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-kafka--aeabc956

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--rabbitmq-kafka--aeabc956
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-2f345e4f,team=alpha
ot-baggage-routing-key rk-2f345e4f
traceparent 00-77a963db919a503b10e2531de8eeda81-45f92a0b8f458fea-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-rabbitmq--0270cb16

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

No headers observed.

test id
elastic-ruby--rabbitmq-rabbitmq--0270cb16
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent

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