Skip to main content
SDK 0.4.0 Wrapping a framework’s top-level call with 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:
1

Wrap top-level call

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

See also