From 71a308affd85054f8b0d92bcab1bafc009616749 Mon Sep 17 00:00:00 2001 From: sakridge Date: Wed, 7 Oct 2020 13:36:54 -0700 Subject: [PATCH] Use datapoint instead of print for is_full signal (#12673) --- ledger/src/blockstore.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/ledger/src/blockstore.rs b/ledger/src/blockstore.rs index 5e07662c86..759996c7b7 100644 --- a/ledger/src/blockstore.rs +++ b/ledger/src/blockstore.rs @@ -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);