microsoft / microsoft/agent-framework

.NET: [Feature]: Allow enabling workflow level Open Telemetry when using AgentWorkflowBuilder

Open
#5,483 3 comments 0 reactions 1 assignee Assigned to @peibekwe View on GitHub
.NET
Dominant language
Python
Stars
13.6k
Forks
2.3k
Avg merge
2d 45m
Merged PRs (30d)
358

Description

### Description

Unless I (and copilot) are missing something when using `AgentWorkflowBuilder` to create a workflow, there is no way to enable OpenTelemetery at the workflow level (the agents and/or chatclient can have it enabled). It would be useful to be able to see the workflow telemetry when debugging. I think there are reasons why you're not allowing any middleware to be added to the workflow builder when using `AgentWorkflowBuilder`, so maybe just a parameter to the existing methods to allow enabling it.

### Code Sample

```markdown

```

### Language/SDK

.NET

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.