elastic-go

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

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.7.4 reported as v2.7.4 2.7.4 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
9 Nov 2026, 19:48 UTC
Harness
9b99070 · measured in backtest-elastic-go-2.7.4
Raw JSON
2.7.4.json → variants[id = "elastic-go"]

Libraries

grpcapmgrpc v2.7.4 (unary interceptors)
httpapmhttp v2.7.4 (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-803e371b,team=alpha
ot-baggage-routing-key rk-803e371b
traceparent 00-3847a9b8ec3ab0bdd7a2ef9d7f7ef7e1-e12f1a845c58653a-01
tracestate cptest=v1
x-cp-canary elastic-go--http-http--2ee7f79c

Observed at the sink on the outbound HTTP request headers

accept-encoding gzip
content-length 45
content-type application/json
elastic-apm-traceparent 00-3847a9b8ec3ab0bdd7a2ef9d7f7ef7e1-cd63d713abdeefd2-01
traceparent 00-3847a9b8ec3ab0bdd7a2ef9d7f7ef7e1-cd63d713abdeefd2-01
tracestate cptest=v1
user-agent Go-http-client/1.1
test id
elastic-go--http-http--2ee7f79c
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-d3ea039f,team=alpha
ot-baggage-routing-key rk-d3ea039f
traceparent 00-a5cafc04f0f7c51df17d78f8d50743ce-6d6bdecd41a006a8-01
tracestate cptest=v1
x-cp-canary elastic-go--http-grpc--7af4070e

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
elastic-apm-traceparent 00-a5cafc04f0f7c51df17d78f8d50743ce-f7fd8226d667f8b1-01
traceparent 00-a5cafc04f0f7c51df17d78f8d50743ce-f7fd8226d667f8b1-01
tracestate cptest=v1
user-agent grpc-go/1.84.0
test id
elastic-go--http-grpc--7af4070e
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-2c7dbcf1,team=alpha
ot-baggage-routing-key rk-2c7dbcf1
traceparent 00-9614a17d5f435fbf42255059af45439f-aa7c72261721656d-01
tracestate cptest=v1
x-cp-canary elastic-go--http-kafka--5e706f2e

Observed at the sink on the outbound Kafka record headers

elastic-apm-traceparent 00-9614a17d5f435fbf42255059af45439f-bd674a232b712d0d-01
traceparent 00-9614a17d5f435fbf42255059af45439f-bd674a232b712d0d-01
tracestate cptest=v1
test id
elastic-go--http-kafka--5e706f2e
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-c8d87b23,team=alpha
ot-baggage-routing-key rk-c8d87b23
traceparent 00-36e8597d34267ffd8cf1d9fac8ff7733-a5740603bc439340-01
tracestate cptest=v1
x-cp-canary elastic-go--http-rabbitmq--88d323d2

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

elastic-apm-traceparent 00-36e8597d34267ffd8cf1d9fac8ff7733-7c4b81a80546331c-01
traceparent 00-36e8597d34267ffd8cf1d9fac8ff7733-7c4b81a80546331c-01
tracestate cptest=v1
test id
elastic-go--http-rabbitmq--88d323d2
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-9e6b1a0c,team=alpha
ot-baggage-routing-key rk-9e6b1a0c
traceparent 00-8203f97b1accf1c579fc8fdb4503c9d1-14719e19dd60e9f1-01
tracestate cptest=v1
x-cp-canary elastic-go--grpc-http--a4ddd7ba

Observed at the sink on the outbound HTTP request headers

accept-encoding gzip
content-length 45
content-type application/json
elastic-apm-traceparent 00-8203f97b1accf1c579fc8fdb4503c9d1-764cf21ef7da09fe-01
traceparent 00-8203f97b1accf1c579fc8fdb4503c9d1-764cf21ef7da09fe-01
tracestate cptest=v1
user-agent Go-http-client/1.1
test id
elastic-go--grpc-http--a4ddd7ba
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-b0d316f3,team=alpha
ot-baggage-routing-key rk-b0d316f3
traceparent 00-f9f7562ac31d9465c10be194e1903d29-f004b3eeab6da048-01
tracestate cptest=v1
x-cp-canary elastic-go--grpc-grpc--789ef533

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
elastic-apm-traceparent 00-f9f7562ac31d9465c10be194e1903d29-f05fae58bcf0f964-01
traceparent 00-f9f7562ac31d9465c10be194e1903d29-f05fae58bcf0f964-01
tracestate cptest=v1
user-agent grpc-go/1.84.0
test id
elastic-go--grpc-grpc--789ef533
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-2de2d96d,team=alpha
ot-baggage-routing-key rk-2de2d96d
traceparent 00-a9e019a3087a860f90ecb90f97acf22a-1a6297f87ad04a27-01
tracestate cptest=v1
x-cp-canary elastic-go--grpc-kafka--0daffbad

Observed at the sink on the outbound Kafka record headers

elastic-apm-traceparent 00-a9e019a3087a860f90ecb90f97acf22a-bddde8bd6552a870-01
traceparent 00-a9e019a3087a860f90ecb90f97acf22a-bddde8bd6552a870-01
tracestate cptest=v1
test id
elastic-go--grpc-kafka--0daffbad
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-ebcf07ab,team=alpha
ot-baggage-routing-key rk-ebcf07ab
traceparent 00-99bbf2b40bf1d094d7737be3ad17a0d5-e14159270d2fee03-01
tracestate cptest=v1
x-cp-canary elastic-go--grpc-rabbitmq--8c95814a

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

elastic-apm-traceparent 00-99bbf2b40bf1d094d7737be3ad17a0d5-6eaed2733488f701-01
traceparent 00-99bbf2b40bf1d094d7737be3ad17a0d5-6eaed2733488f701-01
tracestate cptest=v1
test id
elastic-go--grpc-rabbitmq--8c95814a
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-5600cfb1,team=alpha
ot-baggage-routing-key rk-5600cfb1
traceparent 00-fdc5b92e10f29b44879afc76275294c2-365b2ab0b362202d-01
tracestate cptest=v1
x-cp-canary elastic-go--kafka-http--a3c5d504

Observed at the sink on the outbound HTTP request headers

accept-encoding gzip
content-length 46
content-type application/json
elastic-apm-traceparent 00-fdc5b92e10f29b44879afc76275294c2-e517289f17455739-01
traceparent 00-fdc5b92e10f29b44879afc76275294c2-e517289f17455739-01
tracestate cptest=v1
user-agent Go-http-client/1.1
test id
elastic-go--kafka-http--a3c5d504
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-7f5547c4,team=alpha
ot-baggage-routing-key rk-7f5547c4
traceparent 00-86c0a4d9c97691f9e519f6fd41bbd84b-85d34c9e3142e7b1-01
tracestate cptest=v1
x-cp-canary elastic-go--kafka-grpc--c0404952

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
elastic-apm-traceparent 00-86c0a4d9c97691f9e519f6fd41bbd84b-d6a357238af77482-01
traceparent 00-86c0a4d9c97691f9e519f6fd41bbd84b-d6a357238af77482-01
tracestate cptest=v1
user-agent grpc-go/1.84.0
test id
elastic-go--kafka-grpc--c0404952
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-6e57e4fc,team=alpha
ot-baggage-routing-key rk-6e57e4fc
traceparent 00-aec9627da5402d08c12ee681aa4bf6b4-e8c3b7877e9cfafc-01
tracestate cptest=v1
x-cp-canary elastic-go--kafka-kafka--70f69f79

Observed at the sink on the outbound Kafka record headers

elastic-apm-traceparent 00-aec9627da5402d08c12ee681aa4bf6b4-7c613fbba4ae9796-01
traceparent 00-aec9627da5402d08c12ee681aa4bf6b4-7c613fbba4ae9796-01
tracestate cptest=v1
test id
elastic-go--kafka-kafka--70f69f79
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-e19fffdc,team=alpha
ot-baggage-routing-key rk-e19fffdc
traceparent 00-b3304051d2a396001de9ab899f5ab577-02d3b23832301f8e-01
tracestate cptest=v1
x-cp-canary elastic-go--kafka-rabbitmq--98f8c14c

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

elastic-apm-traceparent 00-b3304051d2a396001de9ab899f5ab577-4e25049a8953d056-01
traceparent 00-b3304051d2a396001de9ab899f5ab577-4e25049a8953d056-01
tracestate cptest=v1
test id
elastic-go--kafka-rabbitmq--98f8c14c
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-f99270f1,team=alpha
ot-baggage-routing-key rk-f99270f1
traceparent 00-b4d2814f270b04a81df336acffb6a3a7-af5545b8e34dee53-01
tracestate cptest=v1
x-cp-canary elastic-go--rabbitmq-http--f21dd2bc

Observed at the sink on the outbound HTTP request headers

accept-encoding gzip
content-length 49
content-type application/json
elastic-apm-traceparent 00-b4d2814f270b04a81df336acffb6a3a7-f033ab6351ff8832-01
traceparent 00-b4d2814f270b04a81df336acffb6a3a7-f033ab6351ff8832-01
tracestate cptest=v1
user-agent Go-http-client/1.1
test id
elastic-go--rabbitmq-http--f21dd2bc
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-598392e9,team=alpha
ot-baggage-routing-key rk-598392e9
traceparent 00-bbb542f7fd068a15713b6d1113e8a5cd-95a7839427d51cbc-01
tracestate cptest=v1
x-cp-canary elastic-go--rabbitmq-grpc--b6a38fe2

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
elastic-apm-traceparent 00-bbb542f7fd068a15713b6d1113e8a5cd-b25e2fce53ea19a5-01
traceparent 00-bbb542f7fd068a15713b6d1113e8a5cd-b25e2fce53ea19a5-01
tracestate cptest=v1
user-agent grpc-go/1.84.0
test id
elastic-go--rabbitmq-grpc--b6a38fe2
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-4eaca845,team=alpha
ot-baggage-routing-key rk-4eaca845
traceparent 00-06b6f230880b0b8e45f8eb55ee7843ce-23461ea9b611bdda-01
tracestate cptest=v1
x-cp-canary elastic-go--rabbitmq-kafka--b9e0a44c

Observed at the sink on the outbound Kafka record headers

elastic-apm-traceparent 00-06b6f230880b0b8e45f8eb55ee7843ce-46486dc287da52e2-01
traceparent 00-06b6f230880b0b8e45f8eb55ee7843ce-46486dc287da52e2-01
tracestate cptest=v1
test id
elastic-go--rabbitmq-kafka--b9e0a44c
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-ac2034c2,team=alpha
ot-baggage-routing-key rk-ac2034c2
traceparent 00-8cfb0ed6d8a9f9992fc02375e367d18c-09f28c419b1595f0-01
tracestate cptest=v1
x-cp-canary elastic-go--rabbitmq-rabbitmq--1d9c0103

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

elastic-apm-traceparent 00-8cfb0ed6d8a9f9992fc02375e367d18c-958d85ed1d0c614d-01
traceparent 00-8cfb0ed6d8a9f9992fc02375e367d18c-958d85ed1d0c614d-01
tracestate cptest=v1
test id
elastic-go--rabbitmq-rabbitmq--1d9c0103
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent

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