Commit c4d2b83
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>
(cherry picked from commit acd0306)1 parent 06e381a commit c4d2b83
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 | | |
| |||
584 | 607 | | |
585 | 608 | | |
586 | 609 | | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
587 | 619 | | |
588 | 620 | | |
589 | 621 | | |
| |||
0 commit comments