Commit 869b8b7
Drain StatsMetrics singleton deltas after each test
StatsMetrics is a process-wide singleton; these tests left per-reason deltas
behind, leaking stats.collapsed_spans metrics into CoreMetricCollectorTest when
they shared a Gradle worker and making its exact span-metric count assertion
order-dependent. Reset every counter in @AfterEach.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent c0ce934 commit 869b8b7
1 file changed
Lines changed: 11 additions & 0 deletions
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
23 | 34 | | |
24 | 35 | | |
25 | 36 | | |
| |||
0 commit comments