Repository navigation
Commit de63586
feat(app): show RED metrics on the trace search results view
For a trace source in results mode, replace the single count histogram above
the results with a Throughput / Errors / Duration trio:
- Throughput counts spans (bars). Duration shows Avg / p95 / p99 over the raw
Duration column, with the unit applied at display from the source precision.
- Errors toggles between rate and volume. Rate is countIf/count as a percent
line, capped at 100%. Volume groups error spans by status and renders them as
bars, so clicking a bar filters the results to that status; this keeps the
per-status drill-down the count histogram had.
- The three charts are DBTimeCharts under a shared sync scope (synced hover
cursor) and use the dashboard tile card header. A RED/Heatmap switch in the
stats row flips to the same heatmap tile the dashboard renders, and resets to
RED when the source changes.
- Aggregations are over raw columns (count, countIf, quantile/avg) so
materialized views can satisfy them; ratio and unit conversion happen at the
display layer. Aggregation builders live in a pure, unit-tested module.
- Adds an opt-in compactXAxisLabels (edge-anchor first/last x labels) and
yAxisMaxDomain (cap the y-axis while auto-scaling below it) to the shared
time chart, both covered by focused unit tests.
Logs and session sources keep the existing histogram.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent d76cb7e commit de63586
17 files changed
Lines changed: 1063 additions & 49 deletions
File tree
- .changeset
- packages/app/src
- __tests__
- components
- Search
- __tests__
- llm
- __tests__
- lib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
53 | 59 | | |
54 | 60 | | |
55 | 61 | | |
| |||
585 | 591 | | |
586 | 592 | | |
587 | 593 | | |
| 594 | + | |
588 | 595 | | |
589 | 596 | | |
590 | 597 | | |
| |||
595 | 602 | | |
596 | 603 | | |
597 | 604 | | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
602 | 614 | | |
603 | 615 | | |
604 | 616 | | |
| |||
749 | 761 | | |
750 | 762 | | |
751 | 763 | | |
| 764 | + | |
752 | 765 | | |
753 | 766 | | |
754 | 767 | | |
| |||
764 | 777 | | |
765 | 778 | | |
766 | 779 | | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
767 | 786 | | |
768 | 787 | | |
769 | 788 | | |
| |||
998 | 1017 | | |
999 | 1018 | | |
1000 | 1019 | | |
1001 | | - | |
| 1020 | + | |
1002 | 1021 | | |
1003 | 1022 | | |
1004 | 1023 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
143 | 148 | | |
144 | 149 | | |
145 | 150 | | |
| |||
206 | 211 | | |
207 | 212 | | |
208 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
209 | 221 | | |
210 | 222 | | |
211 | 223 | | |
| |||
1061 | 1073 | | |
1062 | 1074 | | |
1063 | 1075 | | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
1064 | 1084 | | |
1065 | 1085 | | |
1066 | 1086 | | |
| |||
1611 | 1631 | | |
1612 | 1632 | | |
1613 | 1633 | | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
1614 | 1644 | | |
1615 | 1645 | | |
1616 | 1646 | | |
| |||
1665 | 1695 | | |
1666 | 1696 | | |
1667 | 1697 | | |
1668 | | - | |
| 1698 | + | |
| 1699 | + | |
1669 | 1700 | | |
1670 | 1701 | | |
1671 | 1702 | | |
| |||
1864 | 1895 | | |
1865 | 1896 | | |
1866 | 1897 | | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
| 1902 | + | |
| 1903 | + | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
| 1917 | + | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
| 1925 | + | |
1867 | 1926 | | |
1868 | 1927 | | |
1869 | 1928 | | |
| |||
2491 | 2550 | | |
2492 | 2551 | | |
2493 | 2552 | | |
2494 | | - | |
2495 | | - | |
2496 | | - | |
2497 | | - | |
2498 | | - | |
| 2553 | + | |
2499 | 2554 | | |
2500 | 2555 | | |
2501 | 2556 | | |
| |||
2612 | 2667 | | |
2613 | 2668 | | |
2614 | 2669 | | |
| 2670 | + | |
| 2671 | + | |
| 2672 | + | |
| 2673 | + | |
| 2674 | + | |
| 2675 | + | |
| 2676 | + | |
| 2677 | + | |
| 2678 | + | |
| 2679 | + | |
| 2680 | + | |
| 2681 | + | |
| 2682 | + | |
| 2683 | + | |
| 2684 | + | |
2615 | 2685 | | |
2616 | 2686 | | |
2617 | 2687 | | |
| |||
2632 | 2702 | | |
2633 | 2703 | | |
2634 | 2704 | | |
2635 | | - | |
2636 | | - | |
2637 | | - | |
2638 | | - | |
2639 | | - | |
2640 | | - | |
2641 | | - | |
2642 | | - | |
2643 | | - | |
2644 | | - | |
2645 | | - | |
2646 | | - | |
2647 | | - | |
2648 | | - | |
2649 | | - | |
2650 | | - | |
2651 | | - | |
2652 | | - | |
2653 | | - | |
2654 | | - | |
| 2705 | + | |
| 2706 | + | |
| 2707 | + | |
| 2708 | + | |
| 2709 | + | |
| 2710 | + | |
| 2711 | + | |
| 2712 | + | |
| 2713 | + | |
| 2714 | + | |
| 2715 | + | |
| 2716 | + | |
| 2717 | + | |
| 2718 | + | |
| 2719 | + | |
| 2720 | + | |
| 2721 | + | |
| 2722 | + | |
| 2723 | + | |
| 2724 | + | |
| 2725 | + | |
| 2726 | + | |
| 2727 | + | |
| 2728 | + | |
| 2729 | + | |
| 2730 | + | |
| 2731 | + | |
| 2732 | + | |
| 2733 | + | |
| 2734 | + | |
| 2735 | + | |
| 2736 | + | |
| 2737 | + | |
| 2738 | + | |
| 2739 | + | |
| 2740 | + | |
| 2741 | + | |
| 2742 | + | |
| 2743 | + | |
| 2744 | + | |
| 2745 | + | |
| 2746 | + | |
| 2747 | + | |
| 2748 | + | |
2655 | 2749 | | |
2656 | 2750 | | |
2657 | 2751 | | |
| |||
0 commit comments