elastic-ruby

Ruby init-only elastic-apm (gem)4.7.3

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.7.3 4.7.3 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
1 Nov 2026, 05:45 UTC
Harness
e793604 · measured in backtest-elastic-ruby-4.7.3
Raw JSON
4.7.3.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-88e17dd8,team=alpha
ot-baggage-routing-key rk-88e17dd8
traceparent 00-afe2fd866250d8c8ac169c8d81a827f4-baaf24d2e950304d-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-http--230e7c4b

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-afe2fd866250d8c8ac169c8d81a827f4-89437cb7359a31ae-01
traceparent 00-afe2fd866250d8c8ac169c8d81a827f4-89437cb7359a31ae-01
tracestate cptest=v1,
user-agent Ruby
test id
elastic-ruby--http-http--230e7c4b
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-ca1cfed0,team=alpha
ot-baggage-routing-key rk-ca1cfed0
traceparent 00-8a879f74e58671d082ca1cbdaae9d165-e9996541e77bfa3f-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-grpc--4afd8f00

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--4afd8f00
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-62a9e8a3,team=alpha
ot-baggage-routing-key rk-62a9e8a3
traceparent 00-a78e9dc6b05b3f0a78352b5e46c5f95f-54da322ee3af2d90-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-kafka--15acdced

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--http-kafka--15acdced
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-cfdc0003,team=alpha
ot-baggage-routing-key rk-cfdc0003
traceparent 00-2ca1ded60de23f501a735f21d19ff210-f40df830e5c7b159-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-rabbitmq--7e8b3a43

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

No headers observed.

test id
elastic-ruby--http-rabbitmq--7e8b3a43
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-5bca2e33,team=alpha
ot-baggage-routing-key rk-5bca2e33
traceparent 00-f3e3fcaf9de1599df4689ae90baa501c-f0ecfc036bde837f-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-http--e41df1b9

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--e41df1b9
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-be834b01,team=alpha
ot-baggage-routing-key rk-be834b01
traceparent 00-7d2df0196f48bdc1ccf59a28efd83bdf-51d63b518f20bc0b-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-grpc--e26ffe5e

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--e26ffe5e
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-3f4b0b14,team=alpha
ot-baggage-routing-key rk-3f4b0b14
traceparent 00-c4e335c75199fd055672e79e6ce72fca-72000319c3278b1d-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-kafka--b2203496

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--grpc-kafka--b2203496
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-a5eda886,team=alpha
ot-baggage-routing-key rk-a5eda886
traceparent 00-2f2bdb139ece8880802b953174238219-e8d2aec88a8a9f25-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-rabbitmq--9ca58f30

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

No headers observed.

test id
elastic-ruby--grpc-rabbitmq--9ca58f30
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-e9475b3b,team=alpha
ot-baggage-routing-key rk-e9475b3b
traceparent 00-1adb79a0c972e013c3ee2b7174599f97-60cfd97a0a72686e-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-http--ca3868c0

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--ca3868c0
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-f65c6885,team=alpha
ot-baggage-routing-key rk-f65c6885
traceparent 00-ad1159474ac6df7eb38de2785ee06517-e8594ecb8729074f-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-grpc--a6a06b63

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--a6a06b63
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-3a7feaec,team=alpha
ot-baggage-routing-key rk-3a7feaec
traceparent 00-fb91056022d17fe4af497e67f76fe9e2-0b6e9dc685914c7b-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-kafka--61bd4fd8

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--kafka-kafka--61bd4fd8
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-fe06bdac,team=alpha
ot-baggage-routing-key rk-fe06bdac
traceparent 00-ce1233e6e2f81ab490557ae5b8ebe6eb-6c7609534278c98e-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-rabbitmq--9e6bf827

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

No headers observed.

test id
elastic-ruby--kafka-rabbitmq--9e6bf827
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-a83ccdb4,team=alpha
ot-baggage-routing-key rk-a83ccdb4
traceparent 00-b0c5204b6b1ef0c2bcc5d1c1d42ee6b0-fc75f70eeee21b99-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-http--2202f155

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--2202f155
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-517d81e4,team=alpha
ot-baggage-routing-key rk-517d81e4
traceparent 00-086ec8569311c3330969b5b293d88e0b-b78ebfa176c92a5e-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-grpc--14e79411

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--14e79411
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-a27168d8,team=alpha
ot-baggage-routing-key rk-a27168d8
traceparent 00-11f23bfa3470a757f7b91ef9102db6c1-b5d576318969cea4-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-kafka--6d7abe7e

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--rabbitmq-kafka--6d7abe7e
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-667f812f,team=alpha
ot-baggage-routing-key rk-667f812f
traceparent 00-1641d677c34edc0d59e59d2025b0f61c-c8fe7e97fdaa2e34-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-rabbitmq--bac6b484

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

No headers observed.

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

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