Skip to main content

LogSpansClient

adaline.logs.spans searches individual spans and returns their full payloads — content, parsed content, attributes, tags, status, and timestamps. Use this when a trace-level search isn’t granular enough for the filter you need.

Access

The class is also exported directly:
Types from @adaline/api:

Paginated span search with typed filter objects. Returns full span payloads — content, attributes, parsedContent, tags, status, timestamps — so you can filter by model, provider, promptId, or any attribute.

Parameters

Returns

Promise<SearchSpansResponse> with { data: SpanRow[]; pagination: Pagination }. Each SpanRow includes the full content (model/tool/retrieval/etc.) and parsed attributes.

Example


See Also