Skip to content

[DOCS] Document CLI distributed tracing: infer traces, telemetry.receiver_address, a2a-traces example #401

Closed

Description

@edenreich

Summary

Document the CLI's distributed-tracing surface added in inference-gateway/cli#909: the infer traces command, W3C trace-context propagation to A2A agents and subprocesses, OTLP push of traces/metrics, and the new telemetry.receiver_address config key (INFER_TELEMETRY_RECEIVER_ADDRESS) that lets an external OTel collector feed spans back into the local session store so infer traces shows a full distributed trace.

Acceptance Criteria

  • CLI telemetry page covers: telemetry.enabled, telemetry.otlp.endpoint|headers|interval, and the new telemetry.receiver_address (default empty = loopback-only receiver for subprocess spans; e.g. 0.0.0.0:4318 to accept collector fan-back), with the env-var forms (INFER_TELEMETRY_*).
  • Document infer traces (--list, --format json, session argument) and the /traces chat shortcut, including that ingested foreign spans are labeled name [service] from the producer's service.name.
  • Explain the push/pull topology demonstrated in examples/a2a-traces (CLI OTLP push, collector Prometheus scrape of the agent, traces fan-back to the CLI receiver) and link the example.
  • Link back to the source PR feat(telemetry): propagate W3C trace context to subprocesses and ingest child spans via OTLP cli#909.

Activity

  1. added
    documentation
    on Jul 15, 2026
  2. added theissue type on Jul 15, 2026
  3. moved this to Todo in 2026on Jul 15, 2026
  4. edenreich commented on Jul 15, 2026

    @edenreich
    ContributorAuthor

    @infer Can you work on this?

  5. inference-gateway-maintainer commented on Jul 15, 2026

    @inference-gateway-maintainer
    Contributor

    Model: ollama_cloud/deepseek-v4-flash · View Job

    Todos

    • Add issue to project board and set status to In progress
    • Create working branch and push it
    • Update CLI telemetry page with distributed tracing docs
    • Create PR and set status to QA

    Pull Request

    #406

    ✅ Infer Result: Success

    Updated cli.md with documentation for the CLI's distributed-tracing surface: added the telemetry.receiver_address config key (YAML and INFER_TELEMETRY_RECEIVER_ADDRESS env var) with loopback default and fixed-address usage for external collector fan-back, documented the examples/a2a-traces example with push/pull topology and W3C trace context propagation, documented that ingested foreign spans are labeled name [service] from the producer's service.name, and linked back to the source PR inference-gateway/cli#909. PR #406 is open as a draft.

    Model: ollama_cloud/deepseek-v4-flash · Exit Code: 0 · Duration: 5m 8s

    Tokens: 4,196,909 in · 7,761 out · 4,204,670 total (34 requests)

    Tool calls: 44 total · 95% success rate

    ⚠️ 2 failed tool call(s)
    • Read:
      NOT_FOUND: /home/runner/work/docs/docs/telemetry.md
      
    • Bash:
      exit status 1: accepts at most 1 arg(s), received 2
      

    Triggered by edenreich · Infer Action

  6. moved this from Todo to In progress in 2026on Jul 15, 2026
  7. moved this from In progress to QA in 2026on Jul 15, 2026
  8. moved this from QA to Done in 2026on Jul 15, 2026
  9. inference-gateway-releaser commented on Jul 18, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions