Skip to main content
GET
/
api
/
v1
/
sessions
/
latest-spans
Latest Trace Spans
curl --request GET \
  --url http://localhost:8000/api/v1/sessions/latest-spans

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.

Returns the spans belonging to the single most recent trace. Shape matches Get Trace Spans.

Query Parameters

service
string
Restrict the search to a specific service.

Response

Array of SpanDetail objects — see Get Trace Spans for field documentation.