Skip to navigation

Read a trace slice

A bounded window of one trace: by span index range, span kind, tool name, or around the first failed span. Content stays previews-only unless includeContent is set, which loads it for the selected spans under a byte budget and lists every cut.

Authentication

AuthorizationBearer
API key or Clerk session token

Path parameters

executionIdstringRequired

Query parameters

startstringOptional

First span index (trace start order) to include.

endstringOptional
Span index to stop before.
kindenumOptional
Allowed values:
toolNamestringOptional
aroundFirstFailurestringOptional

Return the first failed span plus this many spans either side (0-50). Not combinable with start/end.

limitstringOptional

Spans to return, 1-100 (default 25).

includeContentenumOptional
Load full content for the selected spans only, under maxContentBytes.
Allowed values:
maxContentBytesstringOptional

Content byte budget, 1-262144 (default 65536).

Response

Trace slice
dataobject
successboolean

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error
503
Service Unavailable Error