Skip to content

docs: document W3C trace propagation and OTLP span ingestion - #394

Merged
edenreich merged 1 commit into
mainfrom
docs/issue-391-20260714-1200
Jul 14, 2026
Merged

edenreich merged 1 commit into
mainfrom
docs/issue-391-20260714-1200

Conversation

@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

Summary

Documents the W3C trace context propagation contract and OTLP span ingestion introduced in inference-gateway/cli#909 (closes inference-gateway/cli#904). The propagation is gated on telemetry.enabled: true (the default).

CLI page (cli.md)

  • New "Trace context propagation to subprocesses" section in the Telemetry reference:
    • TRACEPARENT/TRACESTATE/BAGGAGE env vars set for the Bash tool, skill scripts, and headless subagents (with an env-var table).
    • Automatic OTLP sink selection: configured telemetry.otlp.endpoint passthrough vs a local ephemeral OTLP/HTTP receiver that persists child spans into the per-session trace store.
    • An otel-cli example and an OTel SDK note showing third-party spans land under execute_tool Bash in infer traces.
    • Subagent cross-process nesting, A2A traceparent/tracestate/baggage HTTP header propagation with the shared-collector requirement, and the tmux/detached-shell limitations.
  • Notes in the "Traces" and "Viewing traces" subsections that ingested subprocess spans appear nested under their execute_tool parent.
  • A "Tracing" note in the "Local Subagents" section covering the cross-process trace tree.

Observability page (observability.md)

  • Condensed summary of the propagation contract under "CLI Telemetry", linking to the full CLI reference.

Acceptance criteria

  • TRACEPARENT/TRACESTATE/BAGGAGE propagation and OTLP sink selection (endpoint passthrough vs local ephemeral receiver) documented.
  • otel-cli example and OTel SDK note show third-party spans in infer traces.
  • Subagent trace nesting and A2A HTTP header propagation documented, including the shared-collector requirement for remote spans.

Verification

bun run format:check, bun run lint:md, and bun run build all pass.

Closes #391

@inference-gateway-maintainer
inference-gateway-maintainer Bot requested a review from a team as a code owner July 14, 2026 12:09
@edenreich
edenreich merged commit f26494c into main Jul 14, 2026
1 check passed
@edenreich
edenreich deleted the docs/issue-391-20260714-1200 branch July 14, 2026 12:27
inference-gateway-releaser Bot added a commit that referenced this pull request Jul 18, 2026
## [0.9.2](0.9.1...0.9.2) (2026-07-18)

### 📚 Documentation

* add CLI telemetry documentation for traces, logs, and metrics ([#392](#392)) ([f8bfcdc](f8bfcdc))
* **adk:** align telemetry docs with A2A_TELEMETRY_ENABLE as single trace gate ([#403](#403)) ([fea405f](fea405f)), references [inference-gateway/adk#234](inference-gateway/adk#234)
* **adl-cli,adk:** document OTel service.name/service.version from ADL manifest metadata ([#408](#408)) ([be1b66e](be1b66e))
* **adl-cli:** move generated skills to .agents/skills layout ([#421](#421)) ([2e4e925](2e4e925))
* align ADK telemetry config with OpenTelemetry ([#400](#400)) ([aa0a862](aa0a862))
* **cli-channels:** document channels-manager OTLP telemetry setup ([#415](#415)) ([283ddff](283ddff))
* **cli,a2a:** document A2A agent liveness probes ([#425](#425)) ([5844ea9](5844ea9)), closes [#424](#424)
* **cli:** document distributed tracing - infer traces, telemetry.receiver_address, a2a-traces example ([#406](#406)) ([4fc24f5](4fc24f5)), references [inference-gateway/cli#909](inference-gateway/cli#909)
* document /tasks output panel and agent inherit_mock ([#388](#388)) ([7f3d72b](7f3d72b))
* document built-in skills and tmux skill ([#386](#386)) ([fc013ab](fc013ab))
* document extended spec.telemetry otel exporter fields ([#399](#399)) ([712f6de](712f6de))
* document infer traces command and /traces shortcut ([#393](#393)) ([b938a19](b938a19))
* document infer-action workflow for infer orchestrator ([#396](#396)) ([4e1d792](4e1d792))
* document W3C trace propagation and OTLP span ingestion ([#394](#394)) ([f26494c](f26494c))
* **llamacpp:** add llama.cpp provider documentation ([#417](#417)) ([356f9ac](356f9ac))
* note Go SDK retry cancellation preserves HTTP error ([#382](#382)) ([e39bcab](e39bcab))
* **observability:** document OTEL_METRICS_EXPORTER and Prometheus pull env vars ([#412](#412)) ([b450177](b450177)), closes [#409](#409)
* **operator:** add Orchestrator CRD telemetry reference ([#413](#413)) ([8210e06](8210e06))
* **rust-adk:** document A2A_OTEL_TRACES_EXPORTER trace gating ([#407](#407)) ([29c5f67](29c5f67))
* **sdks:** add llamacpp to supported providers list ([#422](#422)) ([ed2a466](ed2a466))
* **sdks:** document python responses api and zai provider ([#423](#423)) ([c5b608e](c5b608e))

### 🔧 Miscellaneous

* **deps-dev:** bump the bun group with 2 updates ([#384](#384)) ([fc813d8](fc813d8))
* **deps:** bump infer CLI v0.141.0 -> v0.147.1 ([#411](#411)) ([03b6342](03b6342))
* **release:** update GitHub App credentials to use RELEASER_APP_ID and RELEASER_APP_PRIVATE_KEY ([4275006](4275006))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.9.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

1 participant