Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
DevUI provides built-in support for capturing and displaying OpenTelemetry (OTel) traces emitted by the Agent Framework. DevUI does not create its own spans - it collects the spans that Agent Framework emits during agent and workflow execution, then displays them in the debug panel. This helps you debug agent behavior, understand execution flow, and identify performance issues.
Coming Soon
DevUI documentation for C# is coming soon. Please check back later or refer to the Python documentation for conceptual guidance.
Enabling Tracing
Enable tracing when starting DevUI with the --tracing flag:
devui ./agents --tracing
This enables OpenTelemetry tracing for Agent Framework operations.
Viewing Traces in DevUI
When tracing is enabled, the DevUI web interface displays trace information:
- Run an agent or workflow through the UI
- Open the debug panel (available in developer mode)
- View the trace timeline showing:
- Span hierarchy
- Timing information
- Agent/workflow events
- Tool calls and results
Trace Structure
Agent Framework emits traces following OpenTelemetry semantic conventions for GenAI. A typical trace includes:
Agent Execution
LLM Call
Prompt
Response
Tool Call
Tool Execution
Tool Result
LLM Call
Prompt
Response
For workflows, traces show the execution path through executors:
Workflow Execution
Executor A
Agent Execution
...
Executor B
Agent Execution
...
Programmatic Tracing
When using DevUI programmatically with serve(), tracing can be enabled:
from agent_framework.devui import serve
serve(
entities=[agent],
tracing_enabled=True
)
Integration with External Tools
DevUI captures and displays traces emitted by the Agent Framework - it does not create its own spans. These are standard OpenTelemetry traces that can also be exported to external observability tools like:
- Jaeger
- Zipkin
- Azure Monitor
- Datadog
To export traces to an external collector, set the OTLP_ENDPOINT environment variable:
export OTLP_ENDPOINT="http://localhost:4317"
devui ./agents --tracing
Without an OTLP endpoint, traces are captured locally and displayed only in the DevUI debug panel.
Related Documentation
For more details on Agent Framework observability:
- Observability - Comprehensive guide to agent tracing
- Workflow Observability - Workflow-specific tracing
Next Steps
- Security & Deployment - Secure your DevUI deployment
- Samples - Browse sample agents and workflows