mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
.NET: Workflow observability (#959)
* Add basic Workflow telemetry * Add sample * Add source propagation for executor spans * Fix tests and address comments * Fix formatting * Fix declarative unit tests * Address comments * Remove Microsoft.Extensions.AI.Agents.EnableTelemetry * Formatting * Formatting * Formatting * fix solution * Address comments * Add workflow json definition for serialization * Formmating * Address comments
This commit is contained in:
committed by
GitHub
Unverified
parent
2539282d30
commit
042099009f
@@ -139,14 +139,6 @@ using var telemetryAgent = baseAgent.WithOpenTelemetry();
|
||||
var response = await telemetryAgent.RunAsync(messages);
|
||||
```
|
||||
|
||||
### Integration with AppContext Switch
|
||||
|
||||
The implementation integrates with the standard .NET telemetry enablement pattern:
|
||||
|
||||
```csharp
|
||||
AppContext.SetSwitch("Microsoft.Extensions.AI.Agents.EnableTelemetry", true);
|
||||
```
|
||||
|
||||
### Relationship to Microsoft.Extensions.AI
|
||||
|
||||
This implementation follows the exact patterns established by Microsoft.Extensions.AI's OpenTelemetry instrumentation, ensuring consistency across the AI ecosystem and leveraging proven patterns for telemetry integration.
|
||||
|
||||
Reference in New Issue
Block a user