Skip to content

Agent Observability: No Span for Agent Invocation and unclear span naming #44492

@m-gheini

Description

@m-gheini
  • Package Name: azure-ai-projects
  • Package Version: 2.0.0b2
  • Operating System:
  • Python Version:

Describe the bug
Currently, the auto-generated spans in Application Insights lack clear, descriptive names and are missing critical agent invocation spans. This makes it difficult to:

  1. Follow execution flow: Spans are not clearly labeled (e.g., "AI unknown" instead of agent name or operation)
  2. Track agent invocations: No top-level "invoke_agent" span to identify when an agent starts processing
  3. Identify tool calls: Tool execution spans don't clearly show which tool was called (e.g., "execute_tool" vs "execute_tool <tool_name>")

To Reproduce
Steps to reproduce the behavior:

  1. Run an agent and setup observability using configure_azure_monitore.

Expected behavior
Connected spans with clear names and spans for agent invocation.

Screenshots

Image

Metadata

Metadata

Assignees

Labels

AI ProjectsClientThis issue points to a problem in the data-plane of the library.Service AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions