elastic-ruby

Ruby init-only elastic-apm (gem)4.5.1

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.5.1 4.5.1 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
9 Nov 2026, 19:53 UTC
Harness
9b99070 · measured in backtest-elastic-ruby-4.5.1
Raw JSON
4.5.1.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-376f5f95,team=alpha
ot-baggage-routing-key rk-376f5f95
traceparent 00-8abd94530fd5456ff581f252ab52dcec-badd61d37ee598a0-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-http--e32b7221

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-8abd94530fd5456ff581f252ab52dcec-97f6dac752f489c7-01
traceparent 00-8abd94530fd5456ff581f252ab52dcec-97f6dac752f489c7-01
tracestate cptest=v1,
user-agent Ruby
test id
elastic-ruby--http-http--e32b7221
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-4d1e7182,team=alpha
ot-baggage-routing-key rk-4d1e7182
traceparent 00-343ee36679c6026e7a4999a83609d02d-9c2ff79a019d3713-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-grpc--c7e0814d

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--c7e0814d
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-e750b6fa,team=alpha
ot-baggage-routing-key rk-e750b6fa
traceparent 00-c8e4a595744a7be9da2f7aad9590f792-0abf37cfee5b2e4f-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-kafka--c6a79ec8

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--http-kafka--c6a79ec8
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-4891c0cc,team=alpha
ot-baggage-routing-key rk-4891c0cc
traceparent 00-c7d4687e619a21988da8d9e3df597036-bf5cbfb9f565bdb4-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-rabbitmq--33ae5443

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

No headers observed.

test id
elastic-ruby--http-rabbitmq--33ae5443
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-85b5204a,team=alpha
ot-baggage-routing-key rk-85b5204a
traceparent 00-fd2b1e9cf874799cb3a561b70f391277-2c2aac5d038075ee-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-http--bbbb61d1

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--bbbb61d1
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-58124b70,team=alpha
ot-baggage-routing-key rk-58124b70
traceparent 00-3b36b9c98e21794ddfd65bcd39970055-4a92a52d4f9585d9-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-grpc--e273fd78

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--e273fd78
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-72fca460,team=alpha
ot-baggage-routing-key rk-72fca460
traceparent 00-1f23edbade059e94daf80bc1e87c5bf8-d066513a30f5d8db-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-kafka--df2e9242

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--grpc-kafka--df2e9242
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-488df890,team=alpha
ot-baggage-routing-key rk-488df890
traceparent 00-66d952c8b25507450e441c83175e4c9e-5251925c2d9567e6-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-rabbitmq--8f7603d8

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

No headers observed.

test id
elastic-ruby--grpc-rabbitmq--8f7603d8
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-7da68154,team=alpha
ot-baggage-routing-key rk-7da68154
traceparent 00-5a07d62acfecf094c37c67c62d454501-66cc1a3d5932c65d-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-http--27546aeb

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--27546aeb
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-a64a3e82,team=alpha
ot-baggage-routing-key rk-a64a3e82
traceparent 00-01b39c2501dad1a0964f10952cf3b296-1d70ff84bc64d893-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-grpc--5f7536fe

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--5f7536fe
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-ddf57e05,team=alpha
ot-baggage-routing-key rk-ddf57e05
traceparent 00-8155e82874495ea3f5613bbe7ed49637-2df6d59d2412ca7d-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-kafka--7f178f06

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--kafka-kafka--7f178f06
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-84da2e6e,team=alpha
ot-baggage-routing-key rk-84da2e6e
traceparent 00-4ddc376a7ad5429b512146f8378b5255-b910aa64178ae322-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-rabbitmq--d62c225f

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

No headers observed.

test id
elastic-ruby--kafka-rabbitmq--d62c225f
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-77ac3ff6,team=alpha
ot-baggage-routing-key rk-77ac3ff6
traceparent 00-ab331177a7d123c86d2ff2f2c1237ab0-c6f30a6c869ce0b7-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-http--a7ee0241

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--a7ee0241
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-eae5fb29,team=alpha
ot-baggage-routing-key rk-eae5fb29
traceparent 00-44bd3b6c87aa9a8edb9638144af9f71c-c983de3615db4a07-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-grpc--983d462b

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--983d462b
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-2c0252bd,team=alpha
ot-baggage-routing-key rk-2c0252bd
traceparent 00-2c31edf4153e719cc7d1dd19ceeb533b-4681ed603b27377d-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-kafka--564b5cdc

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--rabbitmq-kafka--564b5cdc
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-52a0aa23,team=alpha
ot-baggage-routing-key rk-52a0aa23
traceparent 00-95ee0082a30535bcdfe2c7dae56c4207-8159c03545c46a37-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-rabbitmq--95787d9a

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

No headers observed.

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

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