traced or wrapTraced in atlanai SDK guarantees the agent boundary, input, output, latency, and failure. Use it when the framework emits no usable spans. Calls from instrumented providers inside the wrapper become child spans automatically.
Before you begin
Before you start, make sure you have:- SDK: atlanai SDK installed with tracing, as in Install atlanai SDK.
- Tracing:
init_loggerorinitLoggerconfigured, as in Trace first agent run.
1
Wrap top-level call
- Python
- TypeScript
2
Add detail you own
Manual wrapping cannot invent model, tool, token, or cost details that the framework does not expose. Add child spans or
span.update(...) calls for those fields where you own the call site, as in Create spans for agent run.3
Verify trace
Run one request, flush, and open the trace in Agent Registry. Confirm the root span, provider calls, tool calls, usage, and parent relationships.If no trace appears, see
init() disables tracing and no traces are exported.Troubleshooting
If traces do not appear, see Install and setup errors.Next steps
- Create spans for agent run: add typed spans, usage, and cost inside the wrapper.