Skip to content

[DOCS] Document per-tool tool.<name> telemetry spans in the TypeScript ADK #680

Closed

Description

Summary

The TypeScript Agent SDK now emits one OpenTelemetry span per tool execution: DefaultToolBox.executeTool opens a tool.<name> span with gen_ai.tool.name and copies the session.id / gen_ai.tool.call.id baggage members when present. This mirrors the Go ADK (inference-gateway/adk#305) and lands in inference-gateway/typescript-adk#219 (tracking issue #218).

The telemetry documentation should mention this new span so operators know what to expect in their traces.

Acceptance Criteria

  • The telemetry documentation lists the new tool.<name> span emitted by DefaultToolBox.executeTool
  • The docs describe the gen_ai.tool.name attribute and the optional session.id / gen_ai.tool.call.id attributes copied from incoming baggage
  • The docs note the span is emitted automatically for every registered tool (no per-tool code) and is a no-op when telemetry is disabled

Activity

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

    @edenreich
    Contributor

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

  4. inference-gateway-maintainer commented on Sep 16, 2026

    @inference-gateway-maintainer
    ContributorAuthor

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


    Done

    What changed (typescript-adk.md, one section under "What gets instrumented"):

    • New tool.<name> span emitted by DefaultToolBox.executeTool, with an attribute table for gen_ai.tool.name and the optional session.id / gen_ai.tool.call.id copied from incoming baggage.
    • Notes it is automatic for every registered tool (no per-tool code), uses the global tracer so it is a no-op when telemetry is disabled, is active while the tool runs, records ERROR status on a throwing tool, and is skipped for lookup/schema-validation failures.
    • Feature table row for TelemetryProvider now mentions tool spans.

    PR: #682
    | Branch

  5. moved this to Todo in 2026on Sep 16, 2026
  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