Commit acd0306
fatxpool: metrics for unfiltered timings of inblock events (#10312)
This PR adds a new experimental metric
`substrate_sub_txpool_timing_event_in_block2` for the reliability
dashboard. Unlike the existing `in_block` metric which records timing
only for the first `InBlock` event per transaction, the new `in_block2`
metric records every InBlock event without filtering. This allows
tracking transactions that appear in multiple blocks during chain
reorganizations, providing better visibility into fork-related
transaction behavior. The implementation adds the new histogram to
`EventsHistograms` and updates `handle_status()` to record unfiltered
InBlock events before applying deduplication logic.
This approach should allow for experimenting with new _inblock
confidence_ metric, without affecting the data currently shown on the
Reliability Dashboard.
---------
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>1 parent 7ef1751 commit acd0306
File tree
2 files changed
+42
-0
lines changed- prdoc
- substrate/client/transaction-pool/src/fork_aware_txpool
2 files changed
+42
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
100 | 106 | | |
101 | 107 | | |
102 | 108 | | |
| |||
155 | 161 | | |
156 | 162 | | |
157 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
158 | 181 | | |
159 | 182 | | |
160 | 183 | | |
| |||
557 | 580 | | |
558 | 581 | | |
559 | 582 | | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
560 | 592 | | |
561 | 593 | | |
562 | 594 | | |
| |||
0 commit comments