elastic/kibana

[APM] Proposal: Merge error sample and trace summary into a single component

Offen

#213.436 geöffnet am 06.03.2025

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (8.021 Forks)batch import
Team:obs-ux-infra_services - DEPRECATEDdiscussgood first issuetechnical debt

Repository-Metriken

Stars
 (19.065 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 1T 16h) (999 gemergte PRs in 30 T)

Beschreibung

Trace summary and error sample summary look super similar, and they could be merged into a single component. As a background, we had 2 bugs related to those because of missing fields coming from the queries: if it was a single component, we wouldn't have prevented the bug from happening, but we could have found all usages and would have been easier to fix all places as now they are completely separate. Ref: #213430 and https://github.com/elastic/kibana/pull/206932

👍 :

  • Easier to test
  • Less repeating code
  • Easier to maintain
  • Easier to find similar issues to the above

👎 :

  • Harder to customize and have different data
  • Changes will affect both places (which can be 👍 and 👎 )
  • They are different summaries based on the context, so it might create confusion - good naming is required

⚠ This is just a proposal open for discussion

Contributor Guide