Better partial diagnosics (#9436)

Small collection of improved diagnostics for partials.


  - In the peer info struct (exposing peer data via `/lighthouse/peers`), add a new field to indicate on which subnets the peer supports partials.
- Fix the description of several metrics.
- Downgrade some noisy logging when sending partials to trace, and downgrade one warning that should not worry the user.


Co-Authored-By: Daniel Knopik <daniel@dknopik.de>
This commit is contained in:
Daniel Knopik
2026-06-10 21:39:07 +02:00
committed by GitHub
parent db3192e001
commit 43c2e78139
8 changed files with 69 additions and 50 deletions

View File

@@ -1711,21 +1711,21 @@ pub static PARTIAL_DATA_COLUMN_SIDECAR_HEADER_PROCESSING_REQUESTS: LazyLock<Resu
LazyLock::new(|| {
try_create_int_counter(
"beacon_partial_data_column_sidecar_header_processing_requests_total",
"Count of all partial data column sidecars submitted for processing",
"Count of all partial data column sidecar headers submitted for processing",
)
});
pub static PARTIAL_DATA_COLUMN_SIDECAR_HEADER_PROCESSING_DUPES: LazyLock<Result<IntCounter>> =
LazyLock::new(|| {
try_create_int_counter(
"beacon_partial_data_column_sidecar_header_processing_dupes_total",
"Number of partial data column sidecars verified for gossip (excluding dupes)",
"Number of partial data column sidecar headers received that matched a cached header",
)
});
pub static PARTIAL_DATA_COLUMN_SIDECAR_HEADER_PROCESSING_SUCCESSES: LazyLock<Result<IntCounter>> =
LazyLock::new(|| {
try_create_int_counter(
"beacon_partial_data_column_sidecar_header_processing_successes_total",
"Number of partial data column sidecar headers verified for gossip (excluding dupes)",
"Number of partial data column sidecar headers verified for gossip",
)
});
pub static PARTIAL_DATA_COLUMN_SIDECAR_HEADER_GOSSIP_VERIFICATION_TIMES: LazyLock<

View File

@@ -106,7 +106,7 @@ impl<E: EthSpec> PartialDataColumnAssembler<E> {
let merged = match existing.merge(&partial) {
Ok(merged) => merged,
Err(err) => {
error!("Unexpected error merging partial data column: {:?}", err);
error!(error = ?err, "Unexpected error merging partial data column");
continue;
}
};