LogsClient
adaline.logs is the read-side counterpart to the Monitor write path. It lists recent traces as lightweight metadata and exposes two nested sub-clients for typed search over traces and spans.
The write-side — buffering and flushing traces and spans — lives on the
Monitor, Trace, and Span classes, created via adaline.initMonitor(). LogsClient is strictly read / retroactive patch.Access
Sub-clients
| Property | Client | Covers |
|---|---|---|
adaline.logs.traces | LogTracesClient | Typed trace search and retroactive trace updates |
adaline.logs.spans | LogSpansClient | Typed span search with full span bodies |
@adaline/api:
list()
List log traces in a project — lightweight metadata only (no span bodies). Use filters to narrow the window, then pass the cursor to paginate.Parameters
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | Project to list traces for. |
startedAfter | number | No | Unix milliseconds — traces started after this instant. |
startedBefore | number | No | Unix milliseconds — traces started before this instant. |
status | enum | No | Filter by trace status. |
name | string | No | Filter by trace name (exact match, max 256 chars). |
referenceId | string | No | Filter by client-supplied reference ID. |
sessionId | string | No | Filter by session ID. |
sort | enum | No | Sort order, default "startedAt:desc". |
limit | number | No | Page size (1-200, default 50). |
cursor | string | No | Cursor from a previous response. |
filters | string | No | JSON-encoded array of filter objects (max 20). Each filter has type, column, operator, value. See Export Logs. |
Returns
Promise<ListLogsResponse> with { data: TraceMetadata[]; pagination: Pagination }. Span bodies are not included — use logs.spans.search or logs.traces.search for richer payloads.
Example
See Also
- LogTracesClient — typed trace search + retroactive update
- LogSpansClient — typed span search with full bodies
- Monitor — write-side buffering and flushing
- Adaline.initMonitor
- API reference: List log traces