You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-foundry/how-to/develop/trace-agents-sdk.md
+18-16Lines changed: 18 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,20 +54,20 @@ Here's a brief overview of key concepts before getting started:
54
54
## Extending OpenTelemetry with multi-agent observability
55
55
56
56
Microsoft is enhancing multi-agent observability by introducing new semantic conventions to [OpenTelemetry](https://opentelemetry.io/docs/specs/semconv/gen-ai/gen-ai-agent-spans/), developed collaboratively with Outshift, Cisco's incubation engine. These additions—built upon OpenTelemetry and W3C Trace Context—establish standardized practices for tracing and telemetry within multi-agent systems, facilitating consistent logging of key metrics for quality, performance, safety, and cost. This systematic approach enables more comprehensive visibility into multi-agent workflows, including tool invocations and collaboration.
57
-
These advancements have been integrated into Azure AI Foundry, Microsoft Agent Framework, Semantic Kernel, and Azure AI packages for LangChain, LangGraph, and the OpenAI Agents SDK, enabling customers to get unified observability for agentic systems built using any of these frameworks with Azure AI Foundry. The additional semantic conventions and integration across different frameworks equip developers to monitor, troubleshoot, and optimize their AI agents in a unified solution with increased efficiency and valuable insights.
|New span|execute_task |Captures task planning and event propagation, providing insights into how tasks are decomposed and distributed.|
62
-
|New child spans under "invoke_agent"|agent_to_agent_interaction|Traces communication between agents|
63
-
|New child spans under "invoke_agent" |agent.state.management|Effective context, short or long term memory management|
64
-
|New child spans under "invoke_agent"|agent_planning|Logs the agent's internal planning steps|
65
-
|New child spans under "invoke_agent"|agent orchestration|Capture agent-to-agent orchestration|
66
-
|New attributes in invoke_agent span|tool_definitions|Describes the tool's purpose or configuration|
67
-
|New attributes in invoke_agent span|llm_spans|Records model call spans|
68
-
|New attributes in "execute_tool" span |tool.call.arguments|Logs the arguments passed during tool invocation|
69
-
|New attributes in "execute_tool" span |tool.call.results|Records the results returned by the tool|
70
-
|New event|Evaluation - attributes (name, error.type, label)|Enables structured evaluation of agent performance and decision-making|
57
+
These advancements have been integrated into Azure AI Foundry, Microsoft Agent Framework, Semantic Kernel, and Azure AI packages for LangChain, LangGraph, and the OpenAI Agents SDK, enabling customers to get unified observability for agentic systems built using any of these frameworks with Azure AI Foundry. Learn more about [tracing integrations](#integrations).
| Attribute |invoke_agent | tool_definitions|Describes the tool's purpose or configuration. |
67
+
| Attribute |invoke_agent | llm_spans|Records model call spans. |
68
+
| Attribute | execute_tool|tool.call.arguments|Logs the arguments passed during tool invocation. |
69
+
| Attribute | execute_tool|tool.call.results|Records the results returned by the tool. |
70
+
| Event | —| Evaluation (name, error.type, label) | Enables structured evaluation of agent performance and decision-making. |
71
71
72
72
73
73
## Setup tracing in Azure AI Foundry SDK
@@ -257,13 +257,15 @@ To query trace data for a given service name, query for the `cloud_roleName` pro
257
257
```
258
258
259
259
## Integrations
260
+
260
261
Azure AI Foundry makes it easy to log traces with minimal changes by using our tracing integrations with Microsoft Agent Framework, Semantic Kernel, LangChain, LangGraph, and OpenAI Agent SDK.
261
262
262
263
### Tracing agents built on Microsoft Agent Framework and Semantic Kernel
264
+
263
265
Azure AI Foundry has native integrations with Microsoft Agent Framework and Semantic Kernel. Agents built on these two frameworks get out-of-the-box tracing in Azure AI Foundry Observability.
264
266
265
-
- Learn more about tracing in [Semantic Kernel](/semantic-kernel/concepts/enterprise-readiness/observability)
266
-
- Learn more about tracing in [Microsoft Agent Framework](https://learn.microsoft.com/agent-framework/user-guide/workflows/observability)
267
+
- Learn more about tracing and observability in [Semantic Kernel](/semantic-kernel/concepts/enterprise-readiness/observability) and [Microsoft Agent Framework](https://learn.microsoft.com/agent-framework/user-guide/workflows/observability).
268
+
267
269
268
270
### Enable tracing for Agents built on LangChain & LangGraph
0 commit comments