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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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