@@ -609,6 +609,33 @@ sentry log view my-org/backend 968c763c740cfda8b6728f27fb9e9b01
609609sentry log list --json | jq ' .[] | select(.level == "error")'
610610```
611611
612+ ### Span
613+
614+ View spans in distributed traces
615+
616+ #### ` sentry span list <args...> `
617+
618+ List spans in a trace
619+
620+ ** Flags:**
621+ - ` -n, --limit <value> - Number of spans (1-1000) - (default: "25") `
622+ - ` -q, --query <value> - Filter spans (e.g., "op:db", "duration:>100ms", "project:backend") `
623+ - ` -s, --sort <value> - Sort by: time (default), duration - (default: "time") `
624+ - ` -f, --fresh - Bypass cache and fetch fresh data `
625+ - ` --json - Output as JSON `
626+ - ` --fields <value> - Comma-separated fields to include in JSON output (dot.notation supported) `
627+
628+ #### ` sentry span view <args...> `
629+
630+ View details of specific spans
631+
632+ ** Flags:**
633+ - ` -t, --trace <value> - Trace ID containing the span(s) (required) `
634+ - ` --spans <value> - Span tree depth limit (number, "all" for unlimited, "no" to disable) - (default: "3") `
635+ - ` -f, --fresh - Bypass cache and fetch fresh data `
636+ - ` --json - Output as JSON `
637+ - ` --fields <value> - Comma-separated fields to include in JSON output (dot.notation supported) `
638+
612639### Trace
613640
614641View distributed traces
@@ -759,6 +786,22 @@ List logs from a project
759786- ` --json - Output as JSON `
760787- ` --fields <value> - Comma-separated fields to include in JSON output (dot.notation supported) `
761788
789+ ### Spans
790+
791+ List spans in a trace
792+
793+ #### ` sentry spans <args...> `
794+
795+ List spans in a trace
796+
797+ ** Flags:**
798+ - ` -n, --limit <value> - Number of spans (1-1000) - (default: "25") `
799+ - ` -q, --query <value> - Filter spans (e.g., "op:db", "duration:>100ms", "project:backend") `
800+ - ` -s, --sort <value> - Sort by: time (default), duration - (default: "time") `
801+ - ` -f, --fresh - Bypass cache and fetch fresh data `
802+ - ` --json - Output as JSON `
803+ - ` --fields <value> - Comma-separated fields to include in JSON output (dot.notation supported) `
804+
762805### Traces
763806
764807List recent traces in a project
0 commit comments