explore: --sort is ignored on the errors dataset, so --limit yields an arbitrary N rows instead of a top N
@BYK ya está trabajando en esto.
Desde el 1/9/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Summary
sentry explore --dataset errors --sort '-count()' prints:
[explore] WARN --sort is only supported on the spans dataset. Ignoring sort for errors.
Combined with --limit, this means an errors aggregate is an arbitrary N rows, not a top N — but the flag combination reads exactly like a top-N request, and the warning does not say that the returned rows are unordered.
The underlying events endpoint does support ordering on errors:
sentry api "/organizations/<org>/events/?field=failure.node&field=count()\
&query=release%3A%22<release>%22&statsPeriod=14d&project=<id>&dataset=errors\
&sort=-count()&per_page=5" --json
returns a correctly descending result:
ReturnMain = 1625
(empty) = 1510
TargetCountStartReplay = 485
controller_initialization_failed = 413
HomeFlag = 289
Environment
sentry 0.40.0
node v24.18.0
Windows 10.0.26200
Request
Either:
- plumb
--sortthrough to the events endpoint'ssortparameter for theerrorsdataset (the capability is already there); or - if that is intentionally unsupported, make the warning state the consequence — that the result is an arbitrary subset and must not be treated as a ranking — and mention the events-endpoint alternative.
Why it matters
"Which failures dominate release X" is the most common aggregate question, and the natural formulation is --field ... --field 'count()' --sort '-count()' --limit 25. Today that silently returns 25 arbitrary rows. To rank anything you have to pull the full result set and sort locally, which then runs into #1519 (duplicate rows and a non-reproducible total on the same dataset). Fixing either one alone still leaves errors aggregates unusable for ranking.
- Lenguaje dominante
- TypeScript
- Estrellas
- 121
- Forks
- 14
- Merge medio
- 23 h 54 min
- PR fusionados (30 d)
- 103
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de getsentry/cli
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 65/100
-
bug jared
-
jared
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
Todos los issues de getsentry/cli
Issues similares
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Crush Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
ElementsProject/cln-application#167 · 1 comentario · 1 reacción ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Quantco/pnpm-licenses#17 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100