[first issue] Add error type in the NUM_INVALID_BLOCKS metric #9661
Labels
C-good-first-issue
Category: issues that are self-contained and easy for newcomers to work on.
Near Core
T-core
Team: issues relevant to the core team
The NUM_INVALID_BLOCKS is an important metrics to track how many blocks were invalid. There are multiple reasons for a block to be invalid but currently it's not clear from the metrics itself. This task is to add a tag to the metric with the string of the error type. This can be achieved by converting it to a gauge vec.
It's important to not add the full error message but only the error type. The full message may contain hashes or other unique strings and it would cause us to have one metric per error which is suboptimal. Adding the error type will still allow for grouping by and analyzing this metric sensibly.
The text was updated successfully, but these errors were encountered: