Improve logging and metrics for block publication (#5699)

* Improve logging and metrics for block publication

* Add better buckets

* Bump SQL connection timeout for tests.
This commit is contained in:
Michael Sproul
2024-05-03 18:24:49 +10:00
committed by GitHub
parent ee974db0ba
commit d3d429ff5c
4 changed files with 26 additions and 4 deletions

View File

@@ -31,7 +31,13 @@ lazy_static::lazy_static! {
);
pub static ref HTTP_API_BLOCK_BROADCAST_DELAY_TIMES: Result<HistogramVec> = try_create_histogram_vec(
"http_api_block_broadcast_delay_times",
"Time between start of the slot and when the block was broadcast",
"Time between start of the slot and when the block completed broadcast and processing",
&["provenance"]
);
pub static ref HTTP_API_BLOCK_GOSSIP_TIMES: Result<HistogramVec> = try_create_histogram_vec_with_buckets(
"http_api_block_gossip_times",
"Time between receiving the block on HTTP and publishing it on gossip",
decimal_buckets(-2, 2),
&["provenance"]
);
pub static ref HTTP_API_BLOCK_PUBLISHED_LATE_TOTAL: Result<IntCounter> = try_create_int_counter(