mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 14:37:57 +00:00
Network bridge metrics (#2818)
* add metrics (unused) to network bridge * fix test compilation * trigger metrics messages * add some more metrics * track sent and received notifications * restore metrics import * integrate into service * Update node/network/bridge/src/lib.rs Co-authored-by: Andronik Ordian <write@reusable.software> * Update node/network/bridge/src/lib.rs Co-authored-by: Andronik Ordian <write@reusable.software> Co-authored-by: Andronik Ordian <write@reusable.software>
This commit is contained in:
committed by
GitHub
parent
4df29e71ab
commit
ec5ad35e14
@@ -63,12 +63,12 @@ impl Metrics {
|
||||
}
|
||||
|
||||
/// Provide a timer for handling `ConnectionRequest` which observes on drop.
|
||||
fn time_handle_connection_request(&self) -> Option<metrics::prometheus::prometheus::HistogramTimer> {
|
||||
fn time_handle_connection_request(&self) -> Option<prometheus::prometheus::HistogramTimer> {
|
||||
self.0.as_ref().map(|metrics| metrics.handle_connection_request.start_timer())
|
||||
}
|
||||
|
||||
/// Provide a timer for `process_msg` which observes on drop.
|
||||
fn time_process_msg(&self) -> Option<metrics::prometheus::prometheus::HistogramTimer> {
|
||||
fn time_process_msg(&self) -> Option<prometheus::prometheus::HistogramTimer> {
|
||||
self.0.as_ref().map(|metrics| metrics.process_msg.start_timer())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user