otel-go-compiletime compiletime

Go (otelc) build-time go.opentelemetry.io/otelc1.2.0

attach go tool otelc go build (source untouched)

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

Explanations

Go build-time weavers: Kafka consumers never hand the extracted context back to application code

open otelc's kafka-go Reader has no callback to hand back the context; Orchestrion's sarama consumer weave does not continue the trace seeded in record headers.

Both compile-time weavers break at the same place runtime agents do: the consume side of an async hop. Both compile deliberately naive apps (single main.go, zero tracing imports); only the build command differs from an uninstrumented build.

otel-go-compiletime (otelc v1.1.0): kafka-go's Reader is a pull-style API (ReadMessage(ctx) in an app-owned loop) with no callback boundary, so the woven consumer instrumentation has nowhere to hand the extracted context back to application code. The app's loop context is context.Background() and outbound calls carry nothing, not even a new trace (with no valid span context the W3C propagator injects nothing). PR #1076 confirms a consume span is created per FetchMessage; the missing half is activation, not extraction. Issue #695 (open) is the maintainer-acknowledged messaging semconv workstream naming this gap ("a process-span story for the zero-code gap") and planning IBM/sarama next. By contrast, the same variant carries baggage into Kafka with zero source changes, because kafka-go's Writer.WriteMessages(ctx, …) takes a context.

datadog-go-orchestrion (v1.13.0, dd-trace-go v2.10.1, IBM/sarama v1.60.2): the woven consumer-group instrumentation does not continue the trace seeded in the record headers, so outbound calls after a consume carry x-datadog-*/traceparent with a fresh trace-id; baggage, ot-baggage-* and the foreign tracestate entry are gone. The hand-wired datadog-go relay passes the same legs with the same library versions by following the dd-trace-go contrib README (extract-and-activate in the handler). We found no issue reporting the Orchestrion sarama consume gap.

What a user can do: extract from the record headers and set the context in the consume loop/handler yourself, the one step neither weaver can see.

12 cells affected

go-weavers-kafka-consume-no-context-activation

Go build-time weavers: no trace continues out of a RabbitMQ consume, and Orchestrion also injects nothing on publish

open Neither weaver continues a trace after a RabbitMQ consume. Orchestrion also injects nothing on publish (dd-trace-go has no amqp091 contrib); otelc 1.2.0 does inject on publish.

The relays' amqp091 code carries no tracing (the otelc relay's publish passes plain amqp.Publishing{ContentType, Body}), so whatever reaches the wire on a RabbitMQ leg was put there by the build. What the latest run measures, per variant:

datadog-go-orchestrion: nothing is injected on *->rabbitmq (the message the sink receives carries no trace headers at all) and nothing is extracted on rabbitmq->*. Where the outbound client is woven (HTTP, gRPC, Kafka) it emits a fresh Datadog root trace: traceparent scores new_trace, tracestate keeps only the dd= entry (partial), baggage is absent; on rabbitmq->rabbitmq nothing is sent. dd-trace-go has no amqp091/RabbitMQ contrib, so Orchestrion has nothing to enable on RabbitMQ legs.

otel-go-compiletime (otelc 1.2.0): publish is woven. http->rabbitmq and grpc->rabbitmq pass for traceparent, tracestate and baggage with no source change; the same legs measured as dark with otelc 1.1.0. Nothing continues a trace after a consume: on rabbitmq->* every outbound call, including a RabbitMQ publish, starts a fresh root (traceparent is new_trace, tracestate and baggage are absent). The relay's consume loop is application code that calls the forwarder with context.Background(), and the woven build does not change that.

The hand-wired otel-go and datadog-go relays pass all RabbitMQ legs with hand-written AMQP carriers.

12 cells affected

go-weavers-no-amqp-instrumentation

OpenTelemetry carries the OpenTracing-era ot-baggage-* headers only with the opt-in ottrace propagator

config ot-baggage-* is a legacy OpenTracing convention. OpenTelemetry's default propagators are tracecontext and baggage; the OT Trace propagator that carries ot-baggage-* has to be selected.

The seeded ot-baggage-routing-key header is neither extracted nor re-emitted by any OpenTelemetry variant on any delivered boundary. Every variant here runs the SDK's default propagator set, tracecontext,baggage, and that set does not include the OpenTracing header format: OpenTelemetry standardised on W3C baggage, and the same values travel there instead.

The OpenTelemetry specification does list an opt-in OT Trace propagator (OTEL_PROPAGATORS=ottrace, marked deprecated) that reads and writes ot-tracer-traceid, ot-tracer-spanid, ot-tracer-sampled and ot-baggage-*, for applications migrating from OpenTracing. Several SDKs ship it as a separate package; it is never in the default set, and the harness has not measured it, so whether it makes these cells pass is documented, not verified.

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).

16 cells affected

otel-ot-baggage-not-default

Versions measured

Tracer
go.opentelemetry.io/otelc 1.2.0 reported as v1.2.0 1.2.0 on goproxy github
Runtime
go1.26.11
Setup tier
build-time Source is untouched but the build command is wrapped by a compile-time weaver (`orchestrion go build`, `go tool otelc go build`) that injects instrumentation during compilation.
Attach
go tool otelc go build (source untouched)
Relay source
relays/go-otelc
Ran at
16 Nov 2026, 17:49 UTC
Harness
e6da193 · measured in run-2026-11-16.6
Raw JSON
1.2.0.json → variants[id = "otel-go-compiletime"]

Libraries

grpcgoogle.golang.org/grpc (plain source, woven)
httpnet/http (plain source, woven)
kafkasegmentio/kafka-go v0.4.51 (plain source, woven)
rabbitmqamqp091-go v1.16.0 (plain source, woven by otelc 1.2.0 and later)
sdkgo.opentelemetry.io/otel v1.46.0 (woven in by otelc)
weaverotelc (compile-time, no source changes)

Configuration

OTEL_PROPAGATORStracecontext,baggage
OTEL_TRACES_EXPORTERconsole

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-1b238c10,team=alpha
ot-baggage-routing-key rk-1b238c10
traceparent 00-10f0c4825a736f8e2f5eafd3d090574e-84775dbac50152e0-01
tracestate cptest=v1
x-cp-canary otel-go-compiletime--http-http--5c4c041e

Observed at the sink on the outbound HTTP request headers

accept-encoding gzip
baggage routing-key=rk-1b238c10,team=alpha
content-length 54
content-type application/json
traceparent 00-10f0c4825a736f8e2f5eafd3d090574e-900e9f4193098c19-01
tracestate cptest=v1
user-agent Go-http-client/1.1
test id
otel-go-compiletime--http-http--5c4c041e
raw statuses
baggage=propagatedtracestate=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-3d8a38f7,team=alpha
ot-baggage-routing-key rk-3d8a38f7
traceparent 00-a2e696b9648f1f293ceba423965a5e2d-c817b40d17aac53f-01
tracestate cptest=v1
x-cp-canary otel-go-compiletime--http-grpc--05bf3cd5

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
baggage routing-key=rk-3d8a38f7,team=alpha
content-type application/grpc
grpc-accept-encoding gzip
traceparent 00-a2e696b9648f1f293ceba423965a5e2d-674d2d7af66f6270-01
tracestate cptest=v1
user-agent grpc-go/1.85.0
test id
otel-go-compiletime--http-grpc--05bf3cd5
raw statuses
baggage=propagatedtracestate=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-7df0e116,team=alpha
ot-baggage-routing-key rk-7df0e116
traceparent 00-1497783ef423b49a42b3a6900d9dfd16-b9579bdb82e67752-01
tracestate cptest=v1
x-cp-canary otel-go-compiletime--http-kafka--4113822b

Observed at the sink on the outbound Kafka record headers

baggage routing-key=rk-7df0e116,team=alpha
traceparent 00-1497783ef423b49a42b3a6900d9dfd16-df70c2f7182ea26f-01
tracestate cptest=v1
test id
otel-go-compiletime--http-kafka--4113822b
raw statuses
baggage=propagatedtracestate=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-b19609b5,team=alpha
ot-baggage-routing-key rk-b19609b5
traceparent 00-8047799fe59edc0b6d8cb27d88a4db3a-68acf79b90b5dda6-01
tracestate cptest=v1
x-cp-canary otel-go-compiletime--http-rabbitmq--036ca313

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

baggage routing-key=rk-b19609b5,team=alpha
traceparent 00-8047799fe59edc0b6d8cb27d88a4db3a-4ea9badd52f0cac3-01
tracestate cptest=v1
test id
otel-go-compiletime--http-rabbitmq--036ca313
raw statuses
baggage=propagatedtracestate=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-ef0bdb26,team=alpha
ot-baggage-routing-key rk-ef0bdb26
traceparent 00-0b592be7c606d449767c3700112c98e6-63c55a9eeb4d4a07-01
tracestate cptest=v1
x-cp-canary otel-go-compiletime--grpc-http--9e54a5af

Observed at the sink on the outbound HTTP request headers

accept-encoding gzip
baggage routing-key=rk-ef0bdb26,team=alpha
content-length 54
content-type application/json
traceparent 00-0b592be7c606d449767c3700112c98e6-29522ecb34cab42c-01
tracestate cptest=v1
user-agent Go-http-client/1.1
test id
otel-go-compiletime--grpc-http--9e54a5af
raw statuses
baggage=propagatedtracestate=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-cde460ea,team=alpha
ot-baggage-routing-key rk-cde460ea
traceparent 00-8cf15a8464e7a98069d56685883d654c-6a6546bb9e29a4b3-01
tracestate cptest=v1
x-cp-canary otel-go-compiletime--grpc-grpc--88dbbef8

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
baggage team=alpha,routing-key=rk-cde460ea
content-type application/grpc
grpc-accept-encoding gzip
traceparent 00-8cf15a8464e7a98069d56685883d654c-b101fcf69b4789e5-01
tracestate cptest=v1
user-agent grpc-go/1.85.0
test id
otel-go-compiletime--grpc-grpc--88dbbef8
raw statuses
baggage=propagatedtracestate=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-94f9b71c,team=alpha
ot-baggage-routing-key rk-94f9b71c
traceparent 00-e0f1a302138c5d824a48b5338870455a-049f3c4cc34d045e-01
tracestate cptest=v1
x-cp-canary otel-go-compiletime--grpc-kafka--13c8df65

Observed at the sink on the outbound Kafka record headers

baggage routing-key=rk-94f9b71c,team=alpha
traceparent 00-e0f1a302138c5d824a48b5338870455a-86f19e70405f1c25-01
tracestate cptest=v1
test id
otel-go-compiletime--grpc-kafka--13c8df65
raw statuses
baggage=propagatedtracestate=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-e0b2b4ef,team=alpha
ot-baggage-routing-key rk-e0b2b4ef
traceparent 00-5f61bce42b57b41b35b827a27ab7707a-81b94b32059dd0f8-01
tracestate cptest=v1
x-cp-canary otel-go-compiletime--grpc-rabbitmq--af18abce

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

baggage routing-key=rk-e0b2b4ef,team=alpha
traceparent 00-5f61bce42b57b41b35b827a27ab7707a-a0b39b4e9f1438c0-01
tracestate cptest=v1
test id
otel-go-compiletime--grpc-rabbitmq--af18abce
raw statuses
baggage=propagatedtracestate=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-1ba93158,team=alpha
ot-baggage-routing-key rk-1ba93158
traceparent 00-4ed2feaaf668e6edbd6b1d04708be4ed-7b2b0d3d3b7e1809-01
tracestate cptest=v1
x-cp-canary otel-go-compiletime--kafka-http--0119a633

Observed at the sink on the outbound HTTP request headers

accept-encoding gzip
content-length 55
content-type application/json
traceparent 00-6b726609276d38a03122552ae803295f-388b326b900aebd6-01
user-agent Go-http-client/1.1
test id
otel-go-compiletime--kafka-http--0119a633
raw statuses
baggage=absenttracestate=absenttraceparent=new_traceot_baggage=absent
Kafka gRPC baggage tracestate traceparent ot-baggage delivered via grpc

Seeded on the inbound Kafka record headers

baggage routing-key=rk-3a345163,team=alpha
ot-baggage-routing-key rk-3a345163
traceparent 00-8f17d300736a4ae15c202aad1390d92b-ec4d58553a3ec6b6-01
tracestate cptest=v1
x-cp-canary otel-go-compiletime--kafka-grpc--a0904ef0

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding gzip
traceparent 00-50093d5b9a05f8d71dc60a2d7678f217-db4e25c251a93dbe-01
user-agent grpc-go/1.85.0
test id
otel-go-compiletime--kafka-grpc--a0904ef0
raw statuses
baggage=absenttracestate=absenttraceparent=new_traceot_baggage=absent
Kafka Kafka baggage tracestate traceparent ot-baggage delivered via kafka

Seeded on the inbound Kafka record headers

baggage routing-key=rk-ebc1222c,team=alpha
ot-baggage-routing-key rk-ebc1222c
traceparent 00-463d6fa6eac482d8bab44950053599b7-1a6dec1276d10c6c-01
tracestate cptest=v1
x-cp-canary otel-go-compiletime--kafka-kafka--dc1252a1

Observed at the sink on the outbound Kafka record headers

traceparent 00-ddfa3f7d417ce0c81005e24a20e562d6-f7e0571921510abc-01
test id
otel-go-compiletime--kafka-kafka--dc1252a1
raw statuses
baggage=absenttracestate=absenttraceparent=new_traceot_baggage=absent
Kafka RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq

Seeded on the inbound Kafka record headers

baggage routing-key=rk-a564836c,team=alpha
ot-baggage-routing-key rk-a564836c
traceparent 00-d66e6b6c73a1dde6251e9589f1197cc5-e80a4de9815f1ea9-01
tracestate cptest=v1
x-cp-canary otel-go-compiletime--kafka-rabbitmq--8362ef92

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

traceparent 00-2c08f000b59f0d5e9dd882fac03f4be9-6004406bc6c64962-01
test id
otel-go-compiletime--kafka-rabbitmq--8362ef92
raw statuses
baggage=absenttracestate=absenttraceparent=new_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-f60948f8,team=alpha
ot-baggage-routing-key rk-f60948f8
traceparent 00-341ed0c3f0f7b9c7779a2791cc3c29f7-df9c1aab1d62c956-01
tracestate cptest=v1
x-cp-canary otel-go-compiletime--rabbitmq-http--34b48824

Observed at the sink on the outbound HTTP request headers

accept-encoding gzip
content-length 58
content-type application/json
traceparent 00-f634d8f9ba78aa697aa8b9be282ab353-43307b6b8a923a1e-01
user-agent Go-http-client/1.1
test id
otel-go-compiletime--rabbitmq-http--34b48824
raw statuses
baggage=absenttracestate=absenttraceparent=new_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-dd8df84b,team=alpha
ot-baggage-routing-key rk-dd8df84b
traceparent 00-faa48aa959de3dbee537a3b4a582269c-6619b3ceab6bfcc7-01
tracestate cptest=v1
x-cp-canary otel-go-compiletime--rabbitmq-grpc--e78fb1bc

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding gzip
traceparent 00-0545cbbe6c5bdd52bad1b84c94a692cd-95cd25dcdf11d9b7-01
user-agent grpc-go/1.85.0
test id
otel-go-compiletime--rabbitmq-grpc--e78fb1bc
raw statuses
baggage=absenttracestate=absenttraceparent=new_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-6107b789,team=alpha
ot-baggage-routing-key rk-6107b789
traceparent 00-f8e73dac85cd70eb1810d77650a04aec-17ba1b6b8aff6888-01
tracestate cptest=v1
x-cp-canary otel-go-compiletime--rabbitmq-kafka--980381c6

Observed at the sink on the outbound Kafka record headers

traceparent 00-e0e9bfdb8ac89ed53b9b4266cec1d706-2cd62a0e36d2bbd1-01
test id
otel-go-compiletime--rabbitmq-kafka--980381c6
raw statuses
baggage=absenttracestate=absenttraceparent=new_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-fbff0068,team=alpha
ot-baggage-routing-key rk-fbff0068
traceparent 00-355efd0a754f7811f84840c3fe271b3b-a2350a4798afb398-01
tracestate cptest=v1
x-cp-canary otel-go-compiletime--rabbitmq-rabbitmq--11005e4c

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

traceparent 00-778194536237153f873dd70f47fd0fb0-0ff48056ad59f3d1-01
test id
otel-go-compiletime--rabbitmq-rabbitmq--11005e4c
raw statuses
baggage=absenttracestate=absenttraceparent=new_traceot_baggage=absent

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