> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tracectrl.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Latest Trace Spans

> Spans from the most recent trace

Returns the spans belonging to the single most recent trace. Shape matches [Get Trace Spans](/api-reference/sessions-spans).

### Query Parameters

<ParamField query="service" type="string">Restrict the search to a specific service.</ParamField>

### Response

Array of `SpanDetail` objects — see [Get Trace Spans](/api-reference/sessions-spans) for field documentation.
