Skip to content

Commit ec02026

Browse files
Merge pull request #7197 from ms-johnalex/tracing-092225
Update tracing how-to articles with AI Toolkit tracing flow
2 parents 5716235 + 6c0deb8 commit ec02026

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

articles/ai-foundry/how-to/develop/trace-agents-sdk.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,14 @@ with tracer.start_as_current_span("example-tracing"):
172172
run = project_client.agents.runs.create_and_process(thread_id=thread.id, agent_id=agent.id)
173173
```
174174

175+
### Alternative: AI Toolkit for VS Code
176+
177+
AI Toolkit gives you a simple way to trace locally in VS Code. It uses a local OTLP-compatible collector, making it great for development and debugging.
178+
179+
The toolkit supports AI frameworks like Azure AI Foundry Agents Service, OpenAI, Anthropic, and LangChain through OpenTelemetry. You can see traces instantly in VS Code without needing cloud access.
180+
181+
For detailed setup instructions and SDK-specific code examples, see [Tracing in AI Toolkit](https://code.visualstudio.com/docs/intelligentapps/tracing).
182+
175183
## Trace custom functions
176184

177185
To trace your custom functions, use the OpenTelemetry SDK to instrument your code.

articles/ai-foundry/how-to/develop/trace-application.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: View trace results for AI applications using OpenAI SDK with OpenTe
55
author: lgayhardt
66
ms.author: lagayhar
77
ms.reviewer: ychen
8-
ms.date: 09/15/2025
8+
ms.date: 09/22/2025
99
ms.service: azure-ai-foundry
1010
ms.topic: how-to
1111
ai-usage: ai-assisted
@@ -291,6 +291,15 @@ Configure tracing as follows:
291291
}
292292
```
293293
294+
## Trace locally with AI Toolkit
295+
296+
AI Toolkit offers a simple way to trace locally in VS Code. It uses a local OTLP-compatible collector, making it perfect for development and debugging without needing cloud access.
297+
298+
The toolkit supports the OpenAI SDK and other AI frameworks through OpenTelemetry. You can see traces instantly in your development environment.
299+
300+
For detailed setup instructions and SDK-specific code examples, see [Tracing in AI Toolkit](https://code.visualstudio.com/docs/intelligentapps/tracing).
301+
302+
294303
## Related content
295304
296305
* [Trace agents using Azure AI Foundry SDK](trace-agents-sdk.md)

0 commit comments

Comments
 (0)