You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inbound traceparent is only honored on the first request after startup #459
With OTLP trace export on, the inbound traceparent is used as the parent for the first request after the server starts. Later requests start a new trace, so the upstream traceparent no longer matches the caller's trace id. http.server.request spans also never show up in the exporter.
Seen on the 0.9.0 wheel. I read main (7f81813) and telemetry/http.rs is unchanged since v0.9.0, but I did not run main.
In the collector, agentic.rehydrate, agentic.inference_round, http.client.request, agentic.tool.execute and agentic.persist arrive, but no http.server.request. Their parent span id points at a span that was never exported, and agentic.execute was missing in some runs.
I have not found the cause. track_request calls span.set_parent(...) after creating the span (crates/agentic-server/src/telemetry/http.rs), which is where I would look first.
Related: #279, #338, #339 added the tracing and are closed. I could not find an open issue for this.
I tried to reproduce this and couldn't, on either current main (62471db) or v0.9.0.
I used your exact steps: the real agentic-server binary, OTEL_TRACES_EXPORTER=otlp with http/protobuf pointed at a local OTLP receiver, a header-logging upstream as --llm-api-base, and three curl requests, each with a fresh traceparent. Result on v0.9.0:
Every upstream request continued its own caller's trace, and the export batch contained the POST /v1/responses server spans. main gave the same result.
Since the code path looks correct, something in your setup is probably different. Could you share:
How you installed it: the wheel's launcher, or the binary directly? Anything in ~/.agentic-api/config.toml?
RUST_LOG and any OTEL_TRACES_SAMPLER* settings.
Whether a proxy sits between curl and the gateway, or between the gateway and vLLM. If the gateway-to-vLLM proxy rewrites traceparent, that would match this symptom.
#473 adds a regression test for this exact behaviour (three requests, three trace ids, three exported server spans) and fixes the related #460, but I've left this issue open until we can reproduce it.
Activity
ENCHIGO commentedon Oct 20, 2026
I tried to reproduce this and couldn't, on either current
main(62471db) orv0.9.0.I used your exact steps: the real
agentic-serverbinary,OTEL_TRACES_EXPORTER=otlpwithhttp/protobufpointed at a local OTLP receiver, a header-logging upstream as--llm-api-base, and threecurlrequests, each with a freshtraceparent. Result onv0.9.0:Every upstream request continued its own caller's trace, and the export batch contained the
POST /v1/responsesserver spans.maingave the same result.Since the code path looks correct, something in your setup is probably different. Could you share:
~/.agentic-api/config.toml?RUST_LOGand anyOTEL_TRACES_SAMPLER*settings.curland the gateway, or between the gateway and vLLM. If the gateway-to-vLLM proxy rewritestraceparent, that would match this symptom.#473 adds a regression test for this exact behaviour (three requests, three trace ids, three exported server spans) and fixes the related #460, but I've left this issue open until we can reproduce it.
fix: propagate trace context and baggage to MCP servers
fix: propagate trace context and baggage to MCP servers
fix: propagate trace context and baggage to MCP servers (#473)