Trace manually
Wrap critical steps with spans to capture timings, token usage, and intermediate outputs. Nest spans to reflect multi-step flows.
Add attributes like user ID, tool name, or request type to enable targeted querying later.
Use error spans to capture exceptions and correlate with user-reported issues.
Validate traces end-to-end in the UI and save frequent queries as reusable views.
