-
Notifications
You must be signed in to change notification settings - Fork 590
Open
Labels
Description
Add distributed tracing and metrics instrumentation to the .NET SDK using OpenTelemetry.
Features:
- Opt-in via
AppContext.SetSwitch("GitHub.Copilot.EnableOpenTelemetry", true)or environment variable - Spans:
copilot.session,copilot.turn,copilot.tool_execution,copilot.subagent,copilot.hook,copilot.inference - Metrics: token usage, cost, tool executions, errors, duration
- Follows GenAI Semantic Conventions
Benefits:
- End-to-end visibility into Copilot SDK operations
- Integration with any OpenTelemetry-compatible backend (Jaeger, Zipkin, Azure Monitor, Datadog, etc.)
- Consistent with OpenAI SDK's opt-in telemetry pattern