This page documents the TraceSpan model and Tracer service that power the observability features in Vizra ADK.
TraceSpan Model
TheTraceSpan model represents an individual span within an agent execution trace.
Properties
Relationships
Query Scopes
Helper Methods
Tracer Service
TheTracer service manages span creation and lifecycle.
Creating Spans
Span Types
Trace Management
Cleanup Operations
Usage Examples
Analyzing Trace Performance
Error Analysis
Building Trace Trees
Best Practices:
- Always end spans properly to ensure accurate duration tracking
- Use descriptive span names for better trace readability
- Include relevant metadata for debugging purposes
- Fail spans with exceptions to capture error context
- Use appropriate span types for automatic categorization
- Implement regular cleanup to manage storage
Next Steps
Tracing Concepts
Learn about tracing concepts
API Reference
View all API references