Skip to content

Conversation

@ShipraJain01
Copy link
Contributor

@ShipraJain01 ShipraJain01 commented Aug 29, 2025

Copied from #2528

This PR extends OpenTelemetry semantic conventions to capture of inputs, outputs, and tool definitions in GenAI Single-Agent and Multi-Agent systems.

###Proposed Additions:
Add tool definitions and execution details for Single and Multi-Agent systems.

Add 'gen_ai.tool_definitions' attribute to 'gen_ai.invoke_agent' span
Add 'gen_ai.tool_definitions' attribute to 'attributes.gen_ai.inference.client' attribute group.
Add 'gen_ai.tool.call.arguments' and 'gen_ai.tool.call.result' attributes to 'gen_ai.execute_tool' span.
Prototype in Semantic Kernel: Link

Prototype in Langgraph: Link

This PR is based on discussions and feedback from previous PR - #2528 Link

Merge requirement checklist

  • CONTRIBUTING.md guidelines followed.
  • Change log entry added, according to the guidelines in When to add a changelog entry.
    • If your PR does not need a change log, start the PR title with [chore]
  • Links to the prototypes or existing instrumentations (when adding or changing conventions)

@ShipraJain01 ShipraJain01 requested review from a team as code owners August 29, 2025 19:11
@github-actions github-actions bot added enhancement New feature or request area:gen-ai labels Aug 29, 2025
@ShipraJain01 ShipraJain01 changed the title tool_definitions and tool input output attributes for gen_ai spans New attributes in invoke-agent, execute-tool, llm spans for Single and Multi-Agent traceability Aug 29, 2025
@lmolkova lmolkova changed the title New attributes in invoke-agent, execute-tool, llm spans for Single and Multi-Agent traceability Added tool definition and other tool-related attributes in invoke-agent, inference, and execute-tool spans Aug 29, 2025
@lmolkova lmolkova changed the title Added tool definition and other tool-related attributes in invoke-agent, inference, and execute-tool spans Add tool definition and other tool-related attributes in invoke-agent, inference, and execute-tool spans Aug 29, 2025
@github-project-automation github-project-automation bot moved this from Untriaged to Needs More Approval in Semantic Conventions Triage Sep 1, 2025
@lmolkova lmolkova moved this from Needs More Approval to Ready to be Merged in Semantic Conventions Triage Sep 2, 2025
@ShipraJain01
Copy link
Contributor Author

@lmolkova : Since we have resolved all open comments and all checks passed, could I please request you to merge this PR.

@lmolkova lmolkova added this pull request to the merge queue Sep 4, 2025
Merged via the queue into open-telemetry:main with commit 7782509 Sep 4, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:gen-ai enhancement New feature or request

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants