Skip to content

Conversation

@michalkucharczyk
Copy link
Contributor

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.

@michalkucharczyk
Copy link
Contributor Author

/cmd prdoc --bump minor --audience node_dev

@michalkucharczyk michalkucharczyk added the T0-node This PR/Issue is related to the topic “node”. label Nov 13, 2025
@paritytech-workflow-stopper
Copy link

All GitHub workflows were cancelled due to failure one of the required jobs.
Failed workflow url: https://github.com/paritytech/polkadot-sdk/actions/runs/19332435449
Failed job name: test-linux-stable-no-try-runtime

)?,
registry,
)?,
in_block2: register(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we pls not call it in_block2? :D

WDYT about in_block_duplicates or in_block_nonexclusive. Also shitty, but at least ives an idea.

Copy link
Contributor Author

@michalkucharczyk michalkucharczyk Nov 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in_block2 was a good name :)
changed to in_block_forks in aa6806c

@michalkucharczyk michalkucharczyk added this pull request to the merge queue Dec 10, 2025
Merged via the queue into master with commit acd0306 Dec 10, 2025
252 of 255 checks passed
@michalkucharczyk michalkucharczyk deleted the mku-non-filtered-in-block-timings-metrics branch December 10, 2025 13:49
@michalkucharczyk michalkucharczyk added the A4-backport-stable2512 Pull request must be backported to the stable2512 release branch label Jan 21, 2026
paritytech-release-backport-bot bot pushed a commit that referenced this pull request Jan 21, 2026
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)
@paritytech-release-backport-bot

Successfully created backport PR for stable2512:

EgorPopelyaev pushed a commit that referenced this pull request Jan 21, 2026
Backport #10312 into `stable2512` from michalkucharczyk.

See the
[documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md)
on how to use this bot.

<!--
  # To be used by other automation, do not modify:
  original-pr-number: #${pull_number}
-->

Co-authored-by: Michal Kucharczyk <[email protected]>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A4-backport-stable2512 Pull request must be backported to the stable2512 release branch T0-node This PR/Issue is related to the topic “node”.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants