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
@adaline/api:
search()
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
| Name | Type | Required | Description |
|---|---|---|---|
query | SearchLogSpansRequest | Yes | Project, filters, sort, pagination. See Export Logs for filter grammar. |
Returns
Promise<SearchSpansResponse> with { data: SpanRow[]; pagination: Pagination }. Each SpanRow includes the full content (model/tool/retrieval/etc.) and parsed attributes.
Example
See Also
- LogsClient — parent client
- LogTracesClient — sibling sub-client for trace search
- API reference: Search spans