Skip to content

Commit f68d1e6

Browse files
committed
fix(docs): remove unsupported project-search format from span view
The <project>/<trace-id> format doesn't work because parseSlashSeparatedArg treats a single-slash input as org/project (missing ID), not project/trace-id. Unlike span list or trace view, span view can't fall back to two separate args since the second positional is always a span ID.
1 parent c3500fa commit f68d1e6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/commands/span/view.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ export function validateSpanId(value: string): string {
7878
* Formats:
7979
* - `<trace-id> <span-id> [...]` — auto-detect org/project
8080
* - `<org>/<project>/<trace-id> <span-id> [...]` — explicit target
81-
* - `<project>/<trace-id> <span-id> [...]` — project search
8281
*
8382
* @param args - Positional arguments from CLI
8483
* @returns Parsed trace ID, span IDs, and optional target arg
@@ -274,8 +273,7 @@ export const viewCommand = buildCommand({
274273
"View detailed information about one or more spans within a trace.\n\n" +
275274
"Target specification:\n" +
276275
" sentry span view <trace-id> <span-id> # auto-detect\n" +
277-
" sentry span view <org>/<project>/<trace-id> <span-id> # explicit\n" +
278-
" sentry span view <project>/<trace-id> <span-id> # project search\n\n" +
276+
" sentry span view <org>/<project>/<trace-id> <span-id> # explicit\n\n" +
279277
"The first argument is the trace ID (optionally prefixed with org/project),\n" +
280278
"followed by one or more span IDs.\n\n" +
281279
"Examples:\n" +

0 commit comments

Comments
 (0)