elastic-ruby

Ruby init-only elastic-apm (gem)3.12.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 3.12.0 3.12.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, 08:27 UTC
Harness
9b99070 · measured in backtest-elastic-ruby-3.12.0
Raw JSON
3.12.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-8fb5626d,team=alpha
ot-baggage-routing-key rk-8fb5626d
traceparent 00-cdfec2ae7ff0c71e9713a518e266a9a8-e42f8f3bde70806e-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-http--59da328b

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-cdfec2ae7ff0c71e9713a518e266a9a8-c51629a5b6d56c99-01
traceparent 00-cdfec2ae7ff0c71e9713a518e266a9a8-c51629a5b6d56c99-01
tracestate cptest=v1,
user-agent Ruby
test id
elastic-ruby--http-http--59da328b
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-a4909970,team=alpha
ot-baggage-routing-key rk-a4909970
traceparent 00-3c2c8e0ccb19701bb0b648776754dd41-45a7749d2ab65d0d-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-grpc--72a45b3c

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--72a45b3c
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-d1dd104f,team=alpha
ot-baggage-routing-key rk-d1dd104f
traceparent 00-82d75c7b41aca87b85b06bb3b091d2de-a054820d4d19982a-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-kafka--c7ddcefc

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--http-kafka--c7ddcefc
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-e7c38d5e,team=alpha
ot-baggage-routing-key rk-e7c38d5e
traceparent 00-2b9191ea5eff2eec4e08d389cb991777-f355ae76014d5773-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-rabbitmq--66175996

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

No headers observed.

test id
elastic-ruby--http-rabbitmq--66175996
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-ab14c00a,team=alpha
ot-baggage-routing-key rk-ab14c00a
traceparent 00-2b43b0a062bf5a37d81788f4f4fc1e7f-b5143dae40e2d98f-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-http--9e3b27a5

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--9e3b27a5
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-d4ab9600,team=alpha
ot-baggage-routing-key rk-d4ab9600
traceparent 00-b0b345d3832fe4bccc2915afe314bc25-7629e74cdc75fcc6-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-grpc--5659b024

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--5659b024
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-f72314c4,team=alpha
ot-baggage-routing-key rk-f72314c4
traceparent 00-dcf7fa7553645e6f309acbda6b84b28a-0b5171dbdbc07b70-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-kafka--4454510a

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--grpc-kafka--4454510a
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-43eb5307,team=alpha
ot-baggage-routing-key rk-43eb5307
traceparent 00-861a6a792c112357105f9ffbb37ef225-441dc0c75ddc177e-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-rabbitmq--1dffeffe

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

No headers observed.

test id
elastic-ruby--grpc-rabbitmq--1dffeffe
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-afc3d9f5,team=alpha
ot-baggage-routing-key rk-afc3d9f5
traceparent 00-2c57dc158b60e9515d4c7f1bc6381269-7e874148a37d3d60-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-http--5fb7c7b4

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--5fb7c7b4
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-6ba827a0,team=alpha
ot-baggage-routing-key rk-6ba827a0
traceparent 00-fec73770322cd970294937cdc478966b-fac8c79ae3d711da-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-grpc--ad248666

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--ad248666
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-a8f459dc,team=alpha
ot-baggage-routing-key rk-a8f459dc
traceparent 00-61c7e1ad277f55491064a7d49376c460-0893ed65b2befbb1-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-kafka--2520b557

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--kafka-kafka--2520b557
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-a90019f4,team=alpha
ot-baggage-routing-key rk-a90019f4
traceparent 00-d00297ad2a7867820b57bb19cff05471-cd2074ba652fa6dc-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-rabbitmq--0acca071

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

No headers observed.

test id
elastic-ruby--kafka-rabbitmq--0acca071
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-6c7c5bf6,team=alpha
ot-baggage-routing-key rk-6c7c5bf6
traceparent 00-b651b2d8dac8f2f09ce514a400feee29-60bd38ff8554c8c6-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-http--8fc0d8ec

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--8fc0d8ec
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-788ea0f6,team=alpha
ot-baggage-routing-key rk-788ea0f6
traceparent 00-fe6f5de920a9f30e30aef475b60e33a6-06abafb27082c6e6-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-grpc--ebfa326b

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--ebfa326b
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-7af80dc1,team=alpha
ot-baggage-routing-key rk-7af80dc1
traceparent 00-d2cec36d8aae13e68e6ade8c7d1e48fc-a3ef2ec4390a9aff-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-kafka--1a7c08f9

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--rabbitmq-kafka--1a7c08f9
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-9228410a,team=alpha
ot-baggage-routing-key rk-9228410a
traceparent 00-ea3461912c822d2eecff07e923e9e28d-c1f7d5d869b87c3f-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-rabbitmq--634917af

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

No headers observed.

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

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