Add to dashboard action for the trace search RED charts

Offen
#3,177 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
65/100
Issue-Typ
Feature
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
clickhouse, react, typescript

Rechercherichtung

Start by examining the existing RED tile components and the 'add to dashboard' action pattern in the codebase, likely in packages/app/src/components/Search/traceRedMetrics.ts. Understand how chart configs are built and serialized. Check the heatmap view for similar functionality. The goal is to add an action button that captures the current filter and config to create a dashboard tile.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Context

PR #2826 adds RED metrics (Throughput, Errors, Duration) to the trace search results view. Each tile is a chart card built from the same base config the search histogram uses, so the aggregations already honor the active WHERE filter and the selected time range.

Dashboard tiles elsewhere in the app offer an action to save a chart to a dashboard. The trace search RED tiles do not, so a user who spots something in one of these charts has to rebuild the same aggregation by hand in a dashboard or in the chart explorer.

Proposal

Offer an "add to dashboard" action on each RED tile that carries the tile's config (select, display type, number format, granularity) plus the active search filter, so the saved tile matches what the user was looking at.

The configs are already pure builders in packages/app/src/components/Search/traceRedMetrics.ts, which is what a save action would serialize.

Notes

Worth checking what the heatmap view should do here as well, since it is the same switch on the same area.

Vorherrschende Sprache
TypeScript
Sterne
10.1k
Forks
527
Ø Merge
1 T. 20 Std.
Gemergte PRs (30 T.)
186

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus ClickHouse/ClickStack

Alle Issues in ClickHouse/ClickStack

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.