elastic-go

Go in-code go.elastic.co/apm2.4.2

attach apmhttp / apmgrpc wrappers + hand-written carriers

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

Not compared with the uninstrumented Go relay (no run on this site measured it on go1.26.10).

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

apm-agent-go has no baggage API, by explicit decision

wontfix Elastic's Go agent carries trace identity on all 16 boundaries but implements no W3C baggage at all; the request was closed not-planned in 2019.

apmhttp/apmgrpc wrappers plus the documented manual traceparent/tracestate pattern carry trace identity across all 16 boundaries on apm-agent-go v2.7.12, but the agent has no baggage API. This was declined upstream: apm-agent-go #537 was closed not-planned ("no plans for baggage at the moment"), and apmot/span.go states "SetBaggageItem is a no-op; we do not support baggage" (apmot/doc.go: "Things not implemented by this tracer: binary propagation format, baggage, logging"). A repo-wide search hits baggage only in the OpenTracing bridge; there is no W3C baggage code.

Elastic's own agent spec requires it ("Agents MUST parse, validate, and attach the baggage header according to the W3C specification"). A user who needs baggage must carry it as an application header on every hop themselves.

16 cells affected

elastic-go-no-baggage-api

Versions measured

Tracer
go.elastic.co/apm/v2 2.4.2 reported as v2.4.2 2.4.2 on goproxy github
Runtime
go1.26.10
Setup tier
in-code Instrumentation is woven into application code: wrappers at every client/server construction site and contexts threaded through (Go contribs, Rust propagator API with hand-written carriers).
Attach
apmhttp / apmgrpc wrappers + hand-written carriers
Relay source
relays/go
Ran at
10 Nov 2026, 10:01 UTC
Harness
374f21d · measured in backtest-elastic-go-2.4.2
Raw JSON
2.4.2.json → variants[id = "elastic-go"]

Libraries

grpcapmgrpc v2.4.2 (unary interceptors)
httpapmhttp v2.4.2 (Wrap + WrapClient)
kafkafranz-go v1.22.0 + manual apmhttp trace headers (no elastic messaging module)
rabbitmqamqp091-go v1.14.0 + manual apmhttp trace headers (no elastic messaging module)

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-2fd8a243,team=alpha
ot-baggage-routing-key rk-2fd8a243
traceparent 00-5139f11ccffedd848c435399d82dc1c0-3a898db08f5f23fd-01
tracestate cptest=v1
x-cp-canary elastic-go--http-http--ebce56bd

Observed at the sink on the outbound HTTP request headers

accept-encoding gzip
content-length 45
content-type application/json
elastic-apm-traceparent 00-5139f11ccffedd848c435399d82dc1c0-a10edd24159a99c5-01
traceparent 00-5139f11ccffedd848c435399d82dc1c0-a10edd24159a99c5-01
tracestate cptest=v1
user-agent Go-http-client/1.1
test id
elastic-go--http-http--ebce56bd
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-a0842359,team=alpha
ot-baggage-routing-key rk-a0842359
traceparent 00-af74de1eef06c9b0a57540ec23b95631-b69f3a49470b06b6-01
tracestate cptest=v1
x-cp-canary elastic-go--http-grpc--1888d3b8

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
elastic-apm-traceparent 00-af74de1eef06c9b0a57540ec23b95631-10c8b2e5f9a48056-01
traceparent 00-af74de1eef06c9b0a57540ec23b95631-10c8b2e5f9a48056-01
tracestate cptest=v1
user-agent grpc-go/1.84.0
test id
elastic-go--http-grpc--1888d3b8
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
HTTP Kafka baggage tracestate traceparent ot-baggage delivered via kafka

Seeded on the inbound HTTP request headers

baggage routing-key=rk-4059d965,team=alpha
ot-baggage-routing-key rk-4059d965
traceparent 00-4c10f3774f30bb12e4eee4c7519afa3f-4ec66c545e5a860e-01
tracestate cptest=v1
x-cp-canary elastic-go--http-kafka--d47871c0

Observed at the sink on the outbound Kafka record headers

elastic-apm-traceparent 00-4c10f3774f30bb12e4eee4c7519afa3f-cd6a1659299a292f-01
traceparent 00-4c10f3774f30bb12e4eee4c7519afa3f-cd6a1659299a292f-01
tracestate cptest=v1
test id
elastic-go--http-kafka--d47871c0
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
HTTP RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq

Seeded on the inbound HTTP request headers

baggage routing-key=rk-76b78a07,team=alpha
ot-baggage-routing-key rk-76b78a07
traceparent 00-90f83ac72500215beb9b4e7ea5a2cc27-122041c54f7f65c2-01
tracestate cptest=v1
x-cp-canary elastic-go--http-rabbitmq--acdd4e39

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

elastic-apm-traceparent 00-90f83ac72500215beb9b4e7ea5a2cc27-25528abb057a93b9-01
traceparent 00-90f83ac72500215beb9b4e7ea5a2cc27-25528abb057a93b9-01
tracestate cptest=v1
test id
elastic-go--http-rabbitmq--acdd4e39
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
gRPC HTTP baggage tracestate traceparent ot-baggage delivered via http

Seeded on the inbound gRPC metadata

baggage routing-key=rk-e64650b3,team=alpha
ot-baggage-routing-key rk-e64650b3
traceparent 00-6b291152bc5b5fc17c8679a2110f0afd-b790667bd0d8a617-01
tracestate cptest=v1
x-cp-canary elastic-go--grpc-http--fb750954

Observed at the sink on the outbound HTTP request headers

accept-encoding gzip
content-length 45
content-type application/json
elastic-apm-traceparent 00-6b291152bc5b5fc17c8679a2110f0afd-e0ad9fa8074169bc-01
traceparent 00-6b291152bc5b5fc17c8679a2110f0afd-e0ad9fa8074169bc-01
tracestate cptest=v1
user-agent Go-http-client/1.1
test id
elastic-go--grpc-http--fb750954
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
gRPC gRPC baggage tracestate traceparent ot-baggage delivered via grpc

Seeded on the inbound gRPC metadata

baggage routing-key=rk-a7f355a9,team=alpha
ot-baggage-routing-key rk-a7f355a9
traceparent 00-3ec994e4d31a993df420ee80fb273f26-3ded24f9a6a431c2-01
tracestate cptest=v1
x-cp-canary elastic-go--grpc-grpc--e70d931a

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
elastic-apm-traceparent 00-3ec994e4d31a993df420ee80fb273f26-f9028e9d7aa8cbd6-01
traceparent 00-3ec994e4d31a993df420ee80fb273f26-f9028e9d7aa8cbd6-01
tracestate cptest=v1
user-agent grpc-go/1.84.0
test id
elastic-go--grpc-grpc--e70d931a
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
gRPC Kafka baggage tracestate traceparent ot-baggage delivered via kafka

Seeded on the inbound gRPC metadata

baggage routing-key=rk-1c160ccf,team=alpha
ot-baggage-routing-key rk-1c160ccf
traceparent 00-a68b8f756c4fa169cdf239861a58749a-c31d5c9dab5b5303-01
tracestate cptest=v1
x-cp-canary elastic-go--grpc-kafka--47ae4e63

Observed at the sink on the outbound Kafka record headers

elastic-apm-traceparent 00-a68b8f756c4fa169cdf239861a58749a-8eb2a9422a464427-01
traceparent 00-a68b8f756c4fa169cdf239861a58749a-8eb2a9422a464427-01
tracestate cptest=v1
test id
elastic-go--grpc-kafka--47ae4e63
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
gRPC RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq

Seeded on the inbound gRPC metadata

baggage routing-key=rk-1420e5e6,team=alpha
ot-baggage-routing-key rk-1420e5e6
traceparent 00-9dc2a61a8824bae22b2c6230073fd78c-d68af3ff846a4c86-01
tracestate cptest=v1
x-cp-canary elastic-go--grpc-rabbitmq--a6e46602

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

elastic-apm-traceparent 00-9dc2a61a8824bae22b2c6230073fd78c-3bb60ebc83e55aa4-01
traceparent 00-9dc2a61a8824bae22b2c6230073fd78c-3bb60ebc83e55aa4-01
tracestate cptest=v1
test id
elastic-go--grpc-rabbitmq--a6e46602
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
Kafka HTTP baggage tracestate traceparent ot-baggage delivered via http

Seeded on the inbound Kafka record headers

baggage routing-key=rk-ea4b9a54,team=alpha
ot-baggage-routing-key rk-ea4b9a54
traceparent 00-883b196422cd5ccb1e263e414eab5e99-28ec131e89ccb062-01
tracestate cptest=v1
x-cp-canary elastic-go--kafka-http--503f1fe2

Observed at the sink on the outbound HTTP request headers

accept-encoding gzip
content-length 46
content-type application/json
elastic-apm-traceparent 00-883b196422cd5ccb1e263e414eab5e99-93aa256079a997ef-01
traceparent 00-883b196422cd5ccb1e263e414eab5e99-93aa256079a997ef-01
tracestate cptest=v1
user-agent Go-http-client/1.1
test id
elastic-go--kafka-http--503f1fe2
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
Kafka gRPC baggage tracestate traceparent ot-baggage delivered via grpc

Seeded on the inbound Kafka record headers

baggage routing-key=rk-52eaef6d,team=alpha
ot-baggage-routing-key rk-52eaef6d
traceparent 00-36af5c02760226bb796b38be22f90970-f7fe19c8d6d825a3-01
tracestate cptest=v1
x-cp-canary elastic-go--kafka-grpc--7a17dce9

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
elastic-apm-traceparent 00-36af5c02760226bb796b38be22f90970-3c9af1ef681f10c9-01
traceparent 00-36af5c02760226bb796b38be22f90970-3c9af1ef681f10c9-01
tracestate cptest=v1
user-agent grpc-go/1.84.0
test id
elastic-go--kafka-grpc--7a17dce9
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
Kafka Kafka baggage tracestate traceparent ot-baggage delivered via kafka

Seeded on the inbound Kafka record headers

baggage routing-key=rk-536c7f03,team=alpha
ot-baggage-routing-key rk-536c7f03
traceparent 00-2cc9366ba817978c403be26c5e620958-e8dd19018d4d0467-01
tracestate cptest=v1
x-cp-canary elastic-go--kafka-kafka--b0c5ffa0

Observed at the sink on the outbound Kafka record headers

elastic-apm-traceparent 00-2cc9366ba817978c403be26c5e620958-8f22f6ce551ca436-01
traceparent 00-2cc9366ba817978c403be26c5e620958-8f22f6ce551ca436-01
tracestate cptest=v1
test id
elastic-go--kafka-kafka--b0c5ffa0
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
Kafka RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq

Seeded on the inbound Kafka record headers

baggage routing-key=rk-1be3a4e1,team=alpha
ot-baggage-routing-key rk-1be3a4e1
traceparent 00-007f1083490acecc16374f53a08178c2-54710f635790f252-01
tracestate cptest=v1
x-cp-canary elastic-go--kafka-rabbitmq--eba8aa5c

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

elastic-apm-traceparent 00-007f1083490acecc16374f53a08178c2-762095e54636b2a4-01
traceparent 00-007f1083490acecc16374f53a08178c2-762095e54636b2a4-01
tracestate cptest=v1
test id
elastic-go--kafka-rabbitmq--eba8aa5c
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_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-ad13f8d8,team=alpha
ot-baggage-routing-key rk-ad13f8d8
traceparent 00-8e1f0d8355df2d2c80f7eb7b4698efdf-7d5c2428fbc4ffaf-01
tracestate cptest=v1
x-cp-canary elastic-go--rabbitmq-http--0f314b90

Observed at the sink on the outbound HTTP request headers

accept-encoding gzip
content-length 49
content-type application/json
elastic-apm-traceparent 00-8e1f0d8355df2d2c80f7eb7b4698efdf-131d977ad18c66c8-01
traceparent 00-8e1f0d8355df2d2c80f7eb7b4698efdf-131d977ad18c66c8-01
tracestate cptest=v1
user-agent Go-http-client/1.1
test id
elastic-go--rabbitmq-http--0f314b90
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_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-9947571c,team=alpha
ot-baggage-routing-key rk-9947571c
traceparent 00-9521488f655d8e1363c602d2f47c54d0-7904f558cbc07423-01
tracestate cptest=v1
x-cp-canary elastic-go--rabbitmq-grpc--f39137b3

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
elastic-apm-traceparent 00-9521488f655d8e1363c602d2f47c54d0-c3240548d6e3defd-01
traceparent 00-9521488f655d8e1363c602d2f47c54d0-c3240548d6e3defd-01
tracestate cptest=v1
user-agent grpc-go/1.84.0
test id
elastic-go--rabbitmq-grpc--f39137b3
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_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-573ed77b,team=alpha
ot-baggage-routing-key rk-573ed77b
traceparent 00-2463ad90ed778a09eb098b570e60e52d-f70227f4fed712e1-01
tracestate cptest=v1
x-cp-canary elastic-go--rabbitmq-kafka--c5c33347

Observed at the sink on the outbound Kafka record headers

elastic-apm-traceparent 00-2463ad90ed778a09eb098b570e60e52d-50d9457ac474acd7-01
traceparent 00-2463ad90ed778a09eb098b570e60e52d-50d9457ac474acd7-01
tracestate cptest=v1
test id
elastic-go--rabbitmq-kafka--c5c33347
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_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-316f8fd3,team=alpha
ot-baggage-routing-key rk-316f8fd3
traceparent 00-28010746d60405ec692a490ba69b715a-cfe2457680871e20-01
tracestate cptest=v1
x-cp-canary elastic-go--rabbitmq-rabbitmq--da0625bd

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

elastic-apm-traceparent 00-28010746d60405ec692a490ba69b715a-b103410a99bf9433-01
traceparent 00-28010746d60405ec692a490ba69b715a-b103410a99bf9433-01
tracestate cptest=v1
test id
elastic-go--rabbitmq-rabbitmq--da0625bd
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent

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