Use datapoint instead of print for is_full signal (#12673)

This commit is contained in:
sakridge 2020-10-07 13:36:54 -07:00 committed by GitHub
parent b5faa11f73
commit 71a308affd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 3 deletions

View File

@ -1293,9 +1293,15 @@ impl Blockstore {
&data_index,
);
if slot_meta.is_full() {
info!(
"slot {} is full, last: {}",
slot_meta.slot, slot_meta.last_index
datapoint_info!(
"shred_insert_is_full",
(
"total_time_ms",
solana_sdk::timing::timestamp() - slot_meta.first_shred_timestamp,
i64
),
("slot", slot_meta.slot, i64),
("last_index", slot_meta.last_index, i64),
);
}
trace!("inserted shred into slot {:?} and index {:?}", slot, index);