> ## 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](https://docs.tracectrl.ai/api-reference/sessions-spans.md).

### Query Parameters

**service** `string`

Restrict the search to a specific service.

### Response

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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.