elastic-go

Go in-code go.elastic.co/apm2.4.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.4.4 reported as v2.4.4 2.4.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
10 Nov 2026, 08:34 UTC
Harness
9b99070 · measured in backtest-elastic-go-2.4.4
Raw JSON
2.4.4.json → variants[id = "elastic-go"]

Libraries

grpcapmgrpc v2.4.4 (unary interceptors)
httpapmhttp v2.4.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-05344359,team=alpha
ot-baggage-routing-key rk-05344359
traceparent 00-317b701bbba479abd6c1854c3b037ec2-510272755f01272b-01
tracestate cptest=v1
x-cp-canary elastic-go--http-http--4b663114

Observed at the sink on the outbound HTTP request headers

accept-encoding gzip
content-length 45
content-type application/json
elastic-apm-traceparent 00-317b701bbba479abd6c1854c3b037ec2-1850e2f879026a3d-01
traceparent 00-317b701bbba479abd6c1854c3b037ec2-1850e2f879026a3d-01
tracestate cptest=v1
user-agent Go-http-client/1.1
test id
elastic-go--http-http--4b663114
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-867ab8e9,team=alpha
ot-baggage-routing-key rk-867ab8e9
traceparent 00-1eb102b4d0caf06acf63554865142a83-a42bceef047b2c9f-01
tracestate cptest=v1
x-cp-canary elastic-go--http-grpc--9f60ef43

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
elastic-apm-traceparent 00-1eb102b4d0caf06acf63554865142a83-a4d3d3f9eb6c6862-01
traceparent 00-1eb102b4d0caf06acf63554865142a83-a4d3d3f9eb6c6862-01
tracestate cptest=v1
user-agent grpc-go/1.84.0
test id
elastic-go--http-grpc--9f60ef43
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-6ac6e8e9,team=alpha
ot-baggage-routing-key rk-6ac6e8e9
traceparent 00-cb7819b9d747284f16f3a97ac2c3ec44-bba90e49210e7f28-01
tracestate cptest=v1
x-cp-canary elastic-go--http-kafka--026ba73a

Observed at the sink on the outbound Kafka record headers

elastic-apm-traceparent 00-cb7819b9d747284f16f3a97ac2c3ec44-d591f0539af5522f-01
traceparent 00-cb7819b9d747284f16f3a97ac2c3ec44-d591f0539af5522f-01
tracestate cptest=v1
test id
elastic-go--http-kafka--026ba73a
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-88d9bb3d,team=alpha
ot-baggage-routing-key rk-88d9bb3d
traceparent 00-830acc18d9b632c37b354c1a57a0e12f-b1d2e16f4c0871b4-01
tracestate cptest=v1
x-cp-canary elastic-go--http-rabbitmq--3755ebef

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

elastic-apm-traceparent 00-830acc18d9b632c37b354c1a57a0e12f-157e525a6fe917b1-01
traceparent 00-830acc18d9b632c37b354c1a57a0e12f-157e525a6fe917b1-01
tracestate cptest=v1
test id
elastic-go--http-rabbitmq--3755ebef
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-c73cad7b,team=alpha
ot-baggage-routing-key rk-c73cad7b
traceparent 00-7673ac89f6a94d45fe1cf1630b6e6413-970df2dc469d44dd-01
tracestate cptest=v1
x-cp-canary elastic-go--grpc-http--c3cca20d

Observed at the sink on the outbound HTTP request headers

accept-encoding gzip
content-length 45
content-type application/json
elastic-apm-traceparent 00-7673ac89f6a94d45fe1cf1630b6e6413-95863a21e1e3bd2b-01
traceparent 00-7673ac89f6a94d45fe1cf1630b6e6413-95863a21e1e3bd2b-01
tracestate cptest=v1
user-agent Go-http-client/1.1
test id
elastic-go--grpc-http--c3cca20d
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-ce82838f,team=alpha
ot-baggage-routing-key rk-ce82838f
traceparent 00-8a83da2d2749081909efdb626841571d-9b20ec4c69c78f43-01
tracestate cptest=v1
x-cp-canary elastic-go--grpc-grpc--c70ab41a

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
elastic-apm-traceparent 00-8a83da2d2749081909efdb626841571d-2d1fe9bc50df9333-01
traceparent 00-8a83da2d2749081909efdb626841571d-2d1fe9bc50df9333-01
tracestate cptest=v1
user-agent grpc-go/1.84.0
test id
elastic-go--grpc-grpc--c70ab41a
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-21e012e4,team=alpha
ot-baggage-routing-key rk-21e012e4
traceparent 00-20ee9238dd04455861f134db35fb94e5-c351dad677e3ace3-01
tracestate cptest=v1
x-cp-canary elastic-go--grpc-kafka--c1f4462a

Observed at the sink on the outbound Kafka record headers

elastic-apm-traceparent 00-20ee9238dd04455861f134db35fb94e5-47a019a315ee4cdf-01
traceparent 00-20ee9238dd04455861f134db35fb94e5-47a019a315ee4cdf-01
tracestate cptest=v1
test id
elastic-go--grpc-kafka--c1f4462a
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-3a880d68,team=alpha
ot-baggage-routing-key rk-3a880d68
traceparent 00-d97fa1ca053c7b8b8785ab6c91b0c76a-f06bb4999135d239-01
tracestate cptest=v1
x-cp-canary elastic-go--grpc-rabbitmq--cd3a7132

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

elastic-apm-traceparent 00-d97fa1ca053c7b8b8785ab6c91b0c76a-cfab8c92e5e4e268-01
traceparent 00-d97fa1ca053c7b8b8785ab6c91b0c76a-cfab8c92e5e4e268-01
tracestate cptest=v1
test id
elastic-go--grpc-rabbitmq--cd3a7132
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-6cb32ee8,team=alpha
ot-baggage-routing-key rk-6cb32ee8
traceparent 00-b3e390946cd00aca6ebe76c50a147e44-692122990ef31df9-01
tracestate cptest=v1
x-cp-canary elastic-go--kafka-http--715178cd

Observed at the sink on the outbound HTTP request headers

accept-encoding gzip
content-length 46
content-type application/json
elastic-apm-traceparent 00-b3e390946cd00aca6ebe76c50a147e44-e6a248acd1c21d95-01
traceparent 00-b3e390946cd00aca6ebe76c50a147e44-e6a248acd1c21d95-01
tracestate cptest=v1
user-agent Go-http-client/1.1
test id
elastic-go--kafka-http--715178cd
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-882ef254,team=alpha
ot-baggage-routing-key rk-882ef254
traceparent 00-56fc0f632c76c6d7411dbc71483765bf-42e9b6838ee3a2d5-01
tracestate cptest=v1
x-cp-canary elastic-go--kafka-grpc--e688fe5c

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
elastic-apm-traceparent 00-56fc0f632c76c6d7411dbc71483765bf-2fc4df8167403ec9-01
traceparent 00-56fc0f632c76c6d7411dbc71483765bf-2fc4df8167403ec9-01
tracestate cptest=v1
user-agent grpc-go/1.84.0
test id
elastic-go--kafka-grpc--e688fe5c
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-96fe9f8b,team=alpha
ot-baggage-routing-key rk-96fe9f8b
traceparent 00-95ffb9471104ddba6346ceba4ab279df-302e6dc76f749590-01
tracestate cptest=v1
x-cp-canary elastic-go--kafka-kafka--9a8c0abf

Observed at the sink on the outbound Kafka record headers

elastic-apm-traceparent 00-95ffb9471104ddba6346ceba4ab279df-862c74528f6d08c5-01
traceparent 00-95ffb9471104ddba6346ceba4ab279df-862c74528f6d08c5-01
tracestate cptest=v1
test id
elastic-go--kafka-kafka--9a8c0abf
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-e93140fc,team=alpha
ot-baggage-routing-key rk-e93140fc
traceparent 00-d3244871aea68224fbb6a6ae7b968d95-444db722e8b24d3f-01
tracestate cptest=v1
x-cp-canary elastic-go--kafka-rabbitmq--7c2763b8

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

elastic-apm-traceparent 00-d3244871aea68224fbb6a6ae7b968d95-fc85fe6fd7596d7a-01
traceparent 00-d3244871aea68224fbb6a6ae7b968d95-fc85fe6fd7596d7a-01
tracestate cptest=v1
test id
elastic-go--kafka-rabbitmq--7c2763b8
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-f6ae0940,team=alpha
ot-baggage-routing-key rk-f6ae0940
traceparent 00-5cc85275c9b062388a59607d539f29d9-3cb32898135b2bd6-01
tracestate cptest=v1
x-cp-canary elastic-go--rabbitmq-http--55ba00b8

Observed at the sink on the outbound HTTP request headers

accept-encoding gzip
content-length 49
content-type application/json
elastic-apm-traceparent 00-5cc85275c9b062388a59607d539f29d9-46f82783e8c55c86-01
traceparent 00-5cc85275c9b062388a59607d539f29d9-46f82783e8c55c86-01
tracestate cptest=v1
user-agent Go-http-client/1.1
test id
elastic-go--rabbitmq-http--55ba00b8
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-28294117,team=alpha
ot-baggage-routing-key rk-28294117
traceparent 00-2531549b1a9d062a1877067b2699a6de-0795f435c8675675-01
tracestate cptest=v1
x-cp-canary elastic-go--rabbitmq-grpc--d8937253

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
elastic-apm-traceparent 00-2531549b1a9d062a1877067b2699a6de-39e583d99317d614-01
traceparent 00-2531549b1a9d062a1877067b2699a6de-39e583d99317d614-01
tracestate cptest=v1
user-agent grpc-go/1.84.0
test id
elastic-go--rabbitmq-grpc--d8937253
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-4c73b838,team=alpha
ot-baggage-routing-key rk-4c73b838
traceparent 00-787f003c78043df0b2a310af76fde991-b57691e162a61a81-01
tracestate cptest=v1
x-cp-canary elastic-go--rabbitmq-kafka--1a252e49

Observed at the sink on the outbound Kafka record headers

elastic-apm-traceparent 00-787f003c78043df0b2a310af76fde991-7478024bd7728b76-01
traceparent 00-787f003c78043df0b2a310af76fde991-7478024bd7728b76-01
tracestate cptest=v1
test id
elastic-go--rabbitmq-kafka--1a252e49
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-39540a2b,team=alpha
ot-baggage-routing-key rk-39540a2b
traceparent 00-4ecc2e1404ba9fe573d436bfd87594f0-5878067a3a1905f1-01
tracestate cptest=v1
x-cp-canary elastic-go--rabbitmq-rabbitmq--59bcea95

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

elastic-apm-traceparent 00-4ecc2e1404ba9fe573d436bfd87594f0-13553d2a61b6db3c-01
traceparent 00-4ecc2e1404ba9fe573d436bfd87594f0-13553d2a61b6db3c-01
tracestate cptest=v1
test id
elastic-go--rabbitmq-rabbitmq--59bcea95
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent

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