Skip to main content
POST
Get filtered spans data with detailed attributes

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
startTime
string
required

Start time in ISO 8601 format (e.g., 2025-03-12T00:00:09.872Z)

endTime
string | null

End time in ISO 8601 format (e.g., 2025-03-12T00:10:00.000Z). Defaults to current time if not provided.

traceIds
string[] | null

Array of trace IDs to filter by

Example:
spanIds
string[] | null

Array of span IDs to filter by

Example:
parentSpanIds
string[] | null

Array of parent span IDs to filter by

Example:
createdBySubjectTypes
enum<string>[] | null

Array of subject types to filter by

Type of the authenticated subject. "user" for human users, "serviceaccount" (also known as virtual account) for programmatic access.

Available options:
user,
team,
serviceaccount,
virtualaccount,
external-identity,
agent-identity,
role
Example:
createdBySubjectSlugs
string[] | null

Array of subject slugs to filter by

Example:
applicationNames
string[] | null

Array of application names to filter by

Example:
limit
integer | null

The maximum number of spans to return per page. Defaults to 200 if not provided.

Example:

200

sortDirection
enum<string> | null

Sort direction for results based on time. Defaults to descending (latest first)

Available options:
asc,
desc
Example:

"desc"

pageToken
string | null

An opaque string that should be passed as-is from previous response for fetching the next page. Pass $response.pagination.nextPageToken from previous response for fetching the next page.

tracingProjectFqn
string | null

Tracing project FQN (e.g., truefoundry:tracing-project:tfy-default)

dataRoutingDestination
string | null

Data Routing Destination. One of tracingProjectFqn or dataRoutingDestination is required.

filters
(SpanFieldFilter · object | SpanAttributeFilter · object | GatewayRequestMetadataFilter · object)[] | null

Array of filters

includeFeedbacks
boolean | null
default:false

When true, feedback data is included in the response. When false, feedback data is excluded (returns empty array).

Response

200 - application/json

Returns all the spans matching the query.

data
TraceSpan · object[]
required

Array of flat spans

pagination
TokenPagination · object
required

Pagination information