elastic-ruby

Ruby init-only elastic-apm (gem)4.9.0

attach require 'elastic-apm'; HttpApp.use ElasticAPM::Middleware; ElasticAPM::Sinatra.start(HttpApp)

2/64 cells pass
  • Pass
  • Partial
  • New trace
  • Fail
  • Undelivered
  • Not run

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.

216 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.

60 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 in this run

Tracer
elastic-apm 4.9.0 this version 4.9.0 on rubygems github
Runtime
ruby 3.3.14
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'; HttpApp.use ElasticAPM::Middleware; ElasticAPM::Sinatra.start(HttpApp)
Relay source
relays/ruby/gemfiles/elastic
Ran at
24 Nov 2026, 13:58 UTC
Harness
bb1ee3e · run run-2026-11-24.2
Raw JSON
run-2026-11-24.2.json → variants[id = "elastic-ruby"]

Libraries

grpcgrpc 1.85.0
http-clientnet/http (stdlib)
http-serversinatra 4.2.2 (puma 8.1.2)
kafkardkafka 0.31.0
rabbitmqbunny 3.6.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 native: present_same_trace

Seeded on the inbound HTTP request headers

baggage routing-key=rk-7cc81c3d,team=alpha
ot-baggage-routing-key rk-7cc81c3d
traceparent 00-3bebdceb75a8b1081d5637a3a194565a-3558842f9747fb00-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-http--f80dbf34

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-3bebdceb75a8b1081d5637a3a194565a-be9dccbee5b19c10-01
traceparent 00-3bebdceb75a8b1081d5637a3a194565a-be9dccbee5b19c10-01
tracestate cptest=v1,
user-agent Ruby
test id
elastic-ruby--http-http--f80dbf34
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-96bbbbbb,team=alpha
ot-baggage-routing-key rk-96bbbbbb
traceparent 00-710d8d2069698103c50ba8144431a62d-c83193e10ca3251a-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-grpc--f1a461cb

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.85.0 grpc-c/58.0.0 (linux; chttp2)
test id
elastic-ruby--http-grpc--f1a461cb
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-e66b2b0c,team=alpha
ot-baggage-routing-key rk-e66b2b0c
traceparent 00-16db9aff156306c535a64e0765d0cbf8-3b4dd084abfe170b-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-kafka--64714378

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--http-kafka--64714378
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-e714ca23,team=alpha
ot-baggage-routing-key rk-e714ca23
traceparent 00-71b250fa31166f8f2981fea6fb0888b2-b512f042dc2f1a38-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-rabbitmq--2413333d

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

No headers observed.

test id
elastic-ruby--http-rabbitmq--2413333d
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-421e72db,team=alpha
ot-baggage-routing-key rk-421e72db
traceparent 00-9e1f55c6801ea671dc185785e805ab1a-b8ea800c176f65fa-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-http--780e0dfc

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--780e0dfc
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-9a0e6830,team=alpha
ot-baggage-routing-key rk-9a0e6830
traceparent 00-2db31dcd176a59768761042fa03ac824-632911a05d6173ab-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-grpc--95d6ab66

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.85.0 grpc-c/58.0.0 (linux; chttp2)
test id
elastic-ruby--grpc-grpc--95d6ab66
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-490c105c,team=alpha
ot-baggage-routing-key rk-490c105c
traceparent 00-f5d94167378b433fde1c5780a71aa3a6-d319294f89a1ac56-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-kafka--13bf538d

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--grpc-kafka--13bf538d
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-e16c08c4,team=alpha
ot-baggage-routing-key rk-e16c08c4
traceparent 00-c293f58eae053feeb947b21f14c5ce3a-cdf3d4e9dc4e3332-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-rabbitmq--cdeb467d

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

No headers observed.

test id
elastic-ruby--grpc-rabbitmq--cdeb467d
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-a0e8e1be,team=alpha
ot-baggage-routing-key rk-a0e8e1be
traceparent 00-7a118bf4bd41a7522cd62fe09c0c5c87-188eba7199dcfa45-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-http--b4953bbe

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--b4953bbe
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-4b870d6e,team=alpha
ot-baggage-routing-key rk-4b870d6e
traceparent 00-16b260980a46d4a36b1d1ee733e6794e-a43f1c829b831006-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-grpc--68778848

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.85.0 grpc-c/58.0.0 (linux; chttp2)
test id
elastic-ruby--kafka-grpc--68778848
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-b2a66995,team=alpha
ot-baggage-routing-key rk-b2a66995
traceparent 00-3c7b23b04e7e8fdfbb4bc798905f295d-2a1734803a2602e1-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-kafka--49080f7d

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--kafka-kafka--49080f7d
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-5486ecca,team=alpha
ot-baggage-routing-key rk-5486ecca
traceparent 00-00e9496cd395ffb01bd859590d5d2ce5-187883ba66d4be3d-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-rabbitmq--dee2f8d2

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

No headers observed.

test id
elastic-ruby--kafka-rabbitmq--dee2f8d2
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-8f0971ec,team=alpha
ot-baggage-routing-key rk-8f0971ec
traceparent 00-9313d7b7a168b2f1b62600a4c6e421eb-247cfb9475807956-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-http--340fc1a0

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--340fc1a0
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-61c3f042,team=alpha
ot-baggage-routing-key rk-61c3f042
traceparent 00-9891893dee94f24fea17a5f8de00e9ae-03de0b92af65c6e8-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-grpc--5a5c48d6

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.85.0 grpc-c/58.0.0 (linux; chttp2)
test id
elastic-ruby--rabbitmq-grpc--5a5c48d6
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-650d10cd,team=alpha
ot-baggage-routing-key rk-650d10cd
traceparent 00-4dfb9ebd7f0bd85dde8a89de8c34141e-60628a923b8d5161-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-kafka--ba77ad3c

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--rabbitmq-kafka--ba77ad3c
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-5f4f9345,team=alpha
ot-baggage-routing-key rk-5f4f9345
traceparent 00-429bcead592d5cdbe98948a304b310a7-eefac3cf543b2ac4-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-rabbitmq--7662dbbd

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

No headers observed.

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

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