Usage
Target Specification
Flags
Number of traces to retrieve (1-1000)Alias:
-nSearch query using Sentry search syntax to filter tracesAlias:
-qSort order for traces. Valid values:
date- Most recent first (default)duration- Slowest first
-sPagination cursor. Use
last to continue from the last page.The cursor is automatically saved between invocations, allowing you to paginate through results.Alias: -cOutput as JSON
Examples
List last 20 traces
Show more traces
Sort by slowest first
Filter by transaction name
Paginate through results
Output as JSON
Output
Human-readable format
Displays a table with:- Trace ID (first 8 characters)
- Transaction name
- Duration
- Timestamp
JSON format
Returns an object with:data- Array of trace objectsnextCursor- Cursor for the next page (if available)hasMore- Boolean indicating if more results exist
Notes
- The cursor is automatically persisted between invocations
- Pagination state is keyed by org/project and active filter flags (sort, query)
- Use
sentry trace view <TRACE_ID>to view the full span tree for a specific trace