elastic-ruby

Ruby init-only elastic-apm (gem)4.9.0

attach require 'elastic_apm'; ElasticAPM.start

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

Explanations

OpenTelemetry, Elastic APM and New Relic never implemented the OpenTracing-era ot-baggage-* headers

by-design ot-baggage-* is a legacy OpenTracing convention; OpenTelemetry, Elastic APM and New Relic each define their propagation header set without it.

The seeded ot-baggage-routing-key header is ignored — neither extracted nor re-emitted — by every OpenTelemetry, Elastic and New Relic variant on every delivered boundary. None of these tools ever emitted the OpenTracing header format: OpenTelemetry standardised on W3C baggage; 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.

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.

356 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). Our references record 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. The accurate claim is "no zero-code gRPC", not "no gRPC at all".

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.12
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
7 Sept 2026, 10:57 UTC
Harness
commit not recorded · run run-2026-09-07
Raw JSON
run-2026-09-07.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-300edede,team=alpha
ot-baggage-routing-key rk-300edede
traceparent 00-2a658b8c6a8d4f4768902409c48b8efd-ec6cc681991b688d-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-http--85cf7470

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-2a658b8c6a8d4f4768902409c48b8efd-87e494458536534d-01
traceparent 00-2a658b8c6a8d4f4768902409c48b8efd-87e494458536534d-01
tracestate cptest=v1,
user-agent Ruby
test id
elastic-ruby--http-http--85cf7470
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-b1cc25f6,team=alpha
ot-baggage-routing-key rk-b1cc25f6
traceparent 00-f7a8d6d4f446bf66a0f54ee5a95a0367-a8b682dceb11b801-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-grpc--d384e55f

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--d384e55f
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-c7f9b11c,team=alpha
ot-baggage-routing-key rk-c7f9b11c
traceparent 00-2469f7675df8764207c51d45718e00c2-f0726773106bc964-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-kafka--b4e028f3

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--http-kafka--b4e028f3
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-3bb9d4b5,team=alpha
ot-baggage-routing-key rk-3bb9d4b5
traceparent 00-26abb20957360be441386b441328b8b5-378ec958195335a6-01
tracestate cptest=v1
x-cp-canary elastic-ruby--http-rabbitmq--e8ee8622

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

No headers observed.

test id
elastic-ruby--http-rabbitmq--e8ee8622
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-638553a2,team=alpha
ot-baggage-routing-key rk-638553a2
traceparent 00-416a3bd3a43e8aa87b0a0c81a8f0b01a-7c6211851a910e10-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-http--4dfff459

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--4dfff459
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-c24898e2,team=alpha
ot-baggage-routing-key rk-c24898e2
traceparent 00-e12fc5a5734b70550c749c2eac257647-98f8443b365893c3-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-grpc--17f478f7

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--17f478f7
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-f26aa833,team=alpha
ot-baggage-routing-key rk-f26aa833
traceparent 00-190dd849f7b588d017fa5a6548f1c967-27a7f6ab483248ff-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-kafka--37feba03

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--grpc-kafka--37feba03
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-f789e64c,team=alpha
ot-baggage-routing-key rk-f789e64c
traceparent 00-3160ea057ff0edf839720596aff699be-60cb1bc645c65489-01
tracestate cptest=v1
x-cp-canary elastic-ruby--grpc-rabbitmq--b01a3410

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

No headers observed.

test id
elastic-ruby--grpc-rabbitmq--b01a3410
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-3041c799,team=alpha
ot-baggage-routing-key rk-3041c799
traceparent 00-6d99d602f158b9de09f4595e8f1aba7c-796da0b3e207656c-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-http--42112975

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--42112975
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-7bf95970,team=alpha
ot-baggage-routing-key rk-7bf95970
traceparent 00-2ee394ef6d039f863f124e7e1e0d9106-b5568b6a4ab29089-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-grpc--e91ea867

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--e91ea867
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-d68aafff,team=alpha
ot-baggage-routing-key rk-d68aafff
traceparent 00-890635e9578fe465d530be0f29c39587-0dd68f20eed021cd-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-kafka--325e19b3

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--kafka-kafka--325e19b3
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-baf399ec,team=alpha
ot-baggage-routing-key rk-baf399ec
traceparent 00-39eb5e05a884a58e9327e2865706cd9f-8b61c292fe9447cb-01
tracestate cptest=v1
x-cp-canary elastic-ruby--kafka-rabbitmq--7477b6b5

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

No headers observed.

test id
elastic-ruby--kafka-rabbitmq--7477b6b5
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-9d67b225,team=alpha
ot-baggage-routing-key rk-9d67b225
traceparent 00-91cc65c0b3d43a1d8db1205db6582068-843ae40a88749e7e-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-http--c176eec5

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--c176eec5
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-9910b897,team=alpha
ot-baggage-routing-key rk-9910b897
traceparent 00-cebe14c385ea0c36b36ab62c93c8744e-24d6651a4fce49d0-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-grpc--4d69891a

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--4d69891a
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-5a837bb3,team=alpha
ot-baggage-routing-key rk-5a837bb3
traceparent 00-35ca5fb09bee4677f51c9bcd6a09e814-a46213a82e9db9a6-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-kafka--5e34e76c

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-ruby--rabbitmq-kafka--5e34e76c
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-307d19f3,team=alpha
ot-baggage-routing-key rk-307d19f3
traceparent 00-c6298ff4eaa879bb1bc3adf27f1addc6-c2811a49c03f25b8-01
tracestate cptest=v1
x-cp-canary elastic-ruby--rabbitmq-rabbitmq--5caf87ce

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

No headers observed.

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

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