Skip to main content

Usage

List recent traces from Sentry projects.

Target Specification

Flags

number
default:"20"
Number of traces to retrieve (1-1000)Alias: -n
string
Search query using Sentry search syntax to filter tracesAlias: -q
string
default:"date"
Sort order for traces. Valid values:
  • date - Most recent first (default)
  • duration - Slowest first
Alias: -s
string
Pagination cursor. Use last to continue from the last page.The cursor is automatically saved between invocations, allowing you to paginate through results.Alias: -c
boolean
default:"false"
Output 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
Footer shows pagination info and next page command.

JSON format

Returns an object with:
  • data - Array of trace objects
  • nextCursor - 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