Skip to content

[DOCS] Document automatic tool.<name> tracing spans in the Rust ADK #681

Closed

Description

Summary

The Rust ADK now emits a tool.<name> span around every tool call dispatched by the default task handlers, parented on task.process (PR inference-gateway/rust-adk#148, resolving inference-gateway/rust-adk#147). This mirrors the Go ADK toolbox change in inference-gateway/adk#305. User-facing tracing docs should describe what agents now export: one span per tool execution with gen_ai.tool.name and gen_ai.tool.call.id attributes, tool failures marked as errored, and session.id copied from W3C baggage when present. With the telemetry Cargo feature off the spans are no-ops.

Acceptance Criteria

  • Tracing/telemetry docs mention the automatic tool.<name> span emitted for every tool call in Rust ADK agents
  • Documented attributes: gen_ai.tool.name, gen_ai.tool.call.id, and the optional session.id baggage member
  • Note the dependency on the telemetry Cargo feature (no spans exported when disabled)

Activity

  1. added
    documentation
    on Sep 16, 2026
  2. edenreich commented on Sep 16, 2026

    @edenreich
    Contributor

    @claude Can you work on this? use /ponytail:ponytail

  3. added theissue type on Sep 16, 2026
  4. moved this to Todo in 2026on Sep 16, 2026
  5. inference-gateway-maintainer commented on Sep 16, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 1m 39s —— View job • docs/issue-681-20260916-1008 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-681-20260916-1008?quick_pull=1&title=Issue%20%23681%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23681%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Done

    • Gather context (found the Telemetry / Emitted spans section in rust-adk.md)
    • Document the automatic tool.<name> span
    • bun run lint:md, bun run format:check, bun run build - all pass
    • Commit and open PR (#683)

    What changed

    One section edit in rust-adk.md ("Emitted spans"):

    • tool.<name> added as a third emitted span - one per tool call dispatched by the default task handlers, parented on task.process, no per-tool instrumentation needed, mirroring the Go ADK toolbox spans.
    • Attribute table for gen_ai.tool.name, gen_ai.tool.call.id, and the optional session.id copied from the W3C baggage member.
    • Notes that a tool returning an error marks its span as errored, and that the spans are no-ops when the telemetry Cargo feature is off.

    All three acceptance criteria covered. No other pages needed a change - the Go ADK side (adk.md) already documents its own baggage keys, and observability.md covers gateway metrics rather than agent spans.

    Roadmap board item set to QA.

  6. moved this from Todo to In progress in 2026on Sep 16, 2026
  7. moved this from In progress to QA in 2026on Sep 16, 2026
  8. moved this from QA to Done in 2026on Sep 16, 2026
  9. inference-gateway-releaser commented on Sep 22, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.14 🎉

    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