elastic-go

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

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.1 reported as v2.4.1 2.4.1 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:05 UTC
Harness
374f21d · measured in backtest-elastic-go-2.4.1
Raw JSON
2.4.1.json → variants[id = "elastic-go"]

Libraries

grpcapmgrpc v2.4.1 (unary interceptors)
httpapmhttp v2.4.1 (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-334947d5,team=alpha
ot-baggage-routing-key rk-334947d5
traceparent 00-2c8a23bce5c591a9db19149eb593c8b3-668ab9dfa3c1751e-01
tracestate cptest=v1
x-cp-canary elastic-go--http-http--1cef8a3f

Observed at the sink on the outbound HTTP request headers

accept-encoding gzip
content-length 45
content-type application/json
elastic-apm-traceparent 00-2c8a23bce5c591a9db19149eb593c8b3-13e5ab3f0a775f7b-01
traceparent 00-2c8a23bce5c591a9db19149eb593c8b3-13e5ab3f0a775f7b-01
tracestate cptest=v1
user-agent Go-http-client/1.1
test id
elastic-go--http-http--1cef8a3f
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-f30c5764,team=alpha
ot-baggage-routing-key rk-f30c5764
traceparent 00-9c17adb086183838e66735123376a4dd-a93b4b011489b997-01
tracestate cptest=v1
x-cp-canary elastic-go--http-grpc--53dac4f5

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
elastic-apm-traceparent 00-9c17adb086183838e66735123376a4dd-7fe5ba7c6b9c2d0f-01
traceparent 00-9c17adb086183838e66735123376a4dd-7fe5ba7c6b9c2d0f-01
tracestate cptest=v1
user-agent grpc-go/1.84.0
test id
elastic-go--http-grpc--53dac4f5
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-ca77dfc7,team=alpha
ot-baggage-routing-key rk-ca77dfc7
traceparent 00-c1f0922dc9c156a102c250090ae18239-6f50828c493b4c2c-01
tracestate cptest=v1
x-cp-canary elastic-go--http-kafka--d8513ad2

Observed at the sink on the outbound Kafka record headers

elastic-apm-traceparent 00-c1f0922dc9c156a102c250090ae18239-9adc161268c7593a-01
traceparent 00-c1f0922dc9c156a102c250090ae18239-9adc161268c7593a-01
tracestate cptest=v1
test id
elastic-go--http-kafka--d8513ad2
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-11ef083b,team=alpha
ot-baggage-routing-key rk-11ef083b
traceparent 00-9fff3f1d21e7c91a2c24dbff8ac1b58b-f4b689efb7f1858a-01
tracestate cptest=v1
x-cp-canary elastic-go--http-rabbitmq--5d8fc41e

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

elastic-apm-traceparent 00-9fff3f1d21e7c91a2c24dbff8ac1b58b-94ea513ea5437166-01
traceparent 00-9fff3f1d21e7c91a2c24dbff8ac1b58b-94ea513ea5437166-01
tracestate cptest=v1
test id
elastic-go--http-rabbitmq--5d8fc41e
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-314a947a,team=alpha
ot-baggage-routing-key rk-314a947a
traceparent 00-d058ecc125f017a3b70931ed7583f0a4-26873e8500bc8ef4-01
tracestate cptest=v1
x-cp-canary elastic-go--grpc-http--90798d07

Observed at the sink on the outbound HTTP request headers

accept-encoding gzip
content-length 45
content-type application/json
elastic-apm-traceparent 00-d058ecc125f017a3b70931ed7583f0a4-5710bf2410938e9b-01
traceparent 00-d058ecc125f017a3b70931ed7583f0a4-5710bf2410938e9b-01
tracestate cptest=v1
user-agent Go-http-client/1.1
test id
elastic-go--grpc-http--90798d07
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-571c79cd,team=alpha
ot-baggage-routing-key rk-571c79cd
traceparent 00-20674a0ecc2315f21acaf7ebf2457b00-67983065a62b9484-01
tracestate cptest=v1
x-cp-canary elastic-go--grpc-grpc--c967f079

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
elastic-apm-traceparent 00-20674a0ecc2315f21acaf7ebf2457b00-d0a2cd1296484794-01
traceparent 00-20674a0ecc2315f21acaf7ebf2457b00-d0a2cd1296484794-01
tracestate cptest=v1
user-agent grpc-go/1.84.0
test id
elastic-go--grpc-grpc--c967f079
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-7acb41c0,team=alpha
ot-baggage-routing-key rk-7acb41c0
traceparent 00-4b79bda1f4e9ebe7c811948516721d6b-2c378b12de5aa185-01
tracestate cptest=v1
x-cp-canary elastic-go--grpc-kafka--97c03cb5

Observed at the sink on the outbound Kafka record headers

elastic-apm-traceparent 00-4b79bda1f4e9ebe7c811948516721d6b-8fea53936fe979cc-01
traceparent 00-4b79bda1f4e9ebe7c811948516721d6b-8fea53936fe979cc-01
tracestate cptest=v1
test id
elastic-go--grpc-kafka--97c03cb5
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-e916edbd,team=alpha
ot-baggage-routing-key rk-e916edbd
traceparent 00-e59646cdc285ad196d6599d51c3673bd-25d3d8d34531adc6-01
tracestate cptest=v1
x-cp-canary elastic-go--grpc-rabbitmq--b996c1cb

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

elastic-apm-traceparent 00-e59646cdc285ad196d6599d51c3673bd-1bb4403541d15951-01
traceparent 00-e59646cdc285ad196d6599d51c3673bd-1bb4403541d15951-01
tracestate cptest=v1
test id
elastic-go--grpc-rabbitmq--b996c1cb
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-a2b209ec,team=alpha
ot-baggage-routing-key rk-a2b209ec
traceparent 00-2c32d902064bd71ff03ba2abbf618880-5e3f49f2f19e4de6-01
tracestate cptest=v1
x-cp-canary elastic-go--kafka-http--32d3604a

Observed at the sink on the outbound HTTP request headers

accept-encoding gzip
content-length 46
content-type application/json
elastic-apm-traceparent 00-2c32d902064bd71ff03ba2abbf618880-5aa790950ff55dab-01
traceparent 00-2c32d902064bd71ff03ba2abbf618880-5aa790950ff55dab-01
tracestate cptest=v1
user-agent Go-http-client/1.1
test id
elastic-go--kafka-http--32d3604a
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-2037112a,team=alpha
ot-baggage-routing-key rk-2037112a
traceparent 00-69e390057af23088b517fd23ad169b8b-7d01d0afec674fa5-01
tracestate cptest=v1
x-cp-canary elastic-go--kafka-grpc--8a1b4791

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
elastic-apm-traceparent 00-69e390057af23088b517fd23ad169b8b-7ee1b74b92b4d756-01
traceparent 00-69e390057af23088b517fd23ad169b8b-7ee1b74b92b4d756-01
tracestate cptest=v1
user-agent grpc-go/1.84.0
test id
elastic-go--kafka-grpc--8a1b4791
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-b52f793e,team=alpha
ot-baggage-routing-key rk-b52f793e
traceparent 00-951f04ef553027b2ef195021e056ab15-0d454da76e9a8e38-01
tracestate cptest=v1
x-cp-canary elastic-go--kafka-kafka--abfa085b

Observed at the sink on the outbound Kafka record headers

elastic-apm-traceparent 00-951f04ef553027b2ef195021e056ab15-8520c35d6a29d5ef-01
traceparent 00-951f04ef553027b2ef195021e056ab15-8520c35d6a29d5ef-01
tracestate cptest=v1
test id
elastic-go--kafka-kafka--abfa085b
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-f72b9687,team=alpha
ot-baggage-routing-key rk-f72b9687
traceparent 00-5c5ec8f3a488334346731959e766e2a0-5a469cde9dfa806e-01
tracestate cptest=v1
x-cp-canary elastic-go--kafka-rabbitmq--9ec01a80

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

elastic-apm-traceparent 00-5c5ec8f3a488334346731959e766e2a0-6c5960a35ad315c4-01
traceparent 00-5c5ec8f3a488334346731959e766e2a0-6c5960a35ad315c4-01
tracestate cptest=v1
test id
elastic-go--kafka-rabbitmq--9ec01a80
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-eff819cc,team=alpha
ot-baggage-routing-key rk-eff819cc
traceparent 00-3985ca6bc202b528adf3785d2b2e0595-5a5425f45316aee7-01
tracestate cptest=v1
x-cp-canary elastic-go--rabbitmq-http--148c8aeb

Observed at the sink on the outbound HTTP request headers

accept-encoding gzip
content-length 49
content-type application/json
elastic-apm-traceparent 00-3985ca6bc202b528adf3785d2b2e0595-2ba2c8d8ad7232ed-01
traceparent 00-3985ca6bc202b528adf3785d2b2e0595-2ba2c8d8ad7232ed-01
tracestate cptest=v1
user-agent Go-http-client/1.1
test id
elastic-go--rabbitmq-http--148c8aeb
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-7384f3ae,team=alpha
ot-baggage-routing-key rk-7384f3ae
traceparent 00-b6e0c5b87c2061e9da06d36e0a290541-318e6587bd3a3312-01
tracestate cptest=v1
x-cp-canary elastic-go--rabbitmq-grpc--31bf037f

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
elastic-apm-traceparent 00-b6e0c5b87c2061e9da06d36e0a290541-20f1dbad250d9fee-01
traceparent 00-b6e0c5b87c2061e9da06d36e0a290541-20f1dbad250d9fee-01
tracestate cptest=v1
user-agent grpc-go/1.84.0
test id
elastic-go--rabbitmq-grpc--31bf037f
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-75501d1a,team=alpha
ot-baggage-routing-key rk-75501d1a
traceparent 00-93cd4e30862122ecafa4a8d52ec2a37b-94780d64516c33e3-01
tracestate cptest=v1
x-cp-canary elastic-go--rabbitmq-kafka--22f6ad62

Observed at the sink on the outbound Kafka record headers

elastic-apm-traceparent 00-93cd4e30862122ecafa4a8d52ec2a37b-c6289b9d33ade10f-01
traceparent 00-93cd4e30862122ecafa4a8d52ec2a37b-c6289b9d33ade10f-01
tracestate cptest=v1
test id
elastic-go--rabbitmq-kafka--22f6ad62
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-c1bdb3f9,team=alpha
ot-baggage-routing-key rk-c1bdb3f9
traceparent 00-436ed44777caf768614d74849d420c27-c070c5b141a1b680-01
tracestate cptest=v1
x-cp-canary elastic-go--rabbitmq-rabbitmq--1cd0179b

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

elastic-apm-traceparent 00-436ed44777caf768614d74849d420c27-bcb2bb55c818ac26-01
traceparent 00-436ed44777caf768614d74849d420c27-bcb2bb55c818ac26-01
tracestate cptest=v1
test id
elastic-go--rabbitmq-rabbitmq--1cd0179b
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent

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