Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Query Summary "Example Query" shows an unrelated span when the query's spans have no span.group

Chiusa Adatta ai principianti
#128,291 3 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@mjq ci sta già lavorando.

Dal 22/10/2026.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
82/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
react, typescript

Direzione di ricerca

Inizia con spanDescription.tsx e detailsWidgetVisualization.tsx, poi leggi la configurazione della query in queryDetails.ts per seguire come lo span selezionato diventa la descrizione di esempio. Verifica come DatabaseSpanDescription gestisce l’assenza di groupId e la preliminaryDescription fornita. Il lavoro è completato quando uno span senza span.group mostra il proprio testo della query e la posizione nel sorgente, se disponibile, senza cercare uno span non correlato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Bug Product Area: Insights Waiting for: Product Owner
Environment

SaaS (https://sentry.io/)

Steps to Reproduce
  1. Send DB spans over OTLP. These have no span.group (getsentry/relay#6537).
  2. Insights > Backend > Queries, open any query to get the Query Summary dashboard.
  3. Look at the "Example Query" widget.
Expected Result

The selected query's text, and its source location if the spans have one.

Actual Result

The description and source frame of an unrelated span. For us it's a browser ui.long_animation_frame span, so a Postgres query's example reads https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX.

The widget's own query is correct (span.category:db has:sentry.normalized_description plus the dashboard filters) and returns a matching span. DetailsWidgetVisualization then passes that span's span.group to DatabaseSpanDescription, which re-queries with MutableSearch.fromQueryObject({'span.group': groupId ?? undefined}), limit 1, sorted by -code.filepath. With no group that is an empty search across the whole project, and its result's description takes precedence over preliminaryDescription.

Suggested fix: skip the span.group lookup when groupId is missing and show preliminaryDescription.


Investigated with an AI coding assistant (Claude Code); I've reviewed this report.

Product Area

Dashboards

Link

No response

DSN

No response

Version

No response

Lingua principale
Python
Stelle
45.6k
Fork
4.9k
Merge medio
1g 3h
PR unite (30g)
632

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di getsentry/sentry

Tutte le issue di getsentry/sentry

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.