Struct sc_proposer_metrics::Metrics
source · pub struct Metrics {
pub block_constructed: Histogram,
pub number_of_transactions: Gauge<U64>,
pub end_proposing_reason: CounterVec,
pub create_inherents_time: Histogram,
pub create_block_proposal_time: Histogram,
}
Expand description
Authorship metrics.
Fields§
§block_constructed: Histogram
§number_of_transactions: Gauge<U64>
§end_proposing_reason: CounterVec
§create_inherents_time: Histogram
§create_block_proposal_time: Histogram
Implementations§
source§impl Metrics
impl Metrics
pub fn register(registry: &Registry) -> Result<Self, PrometheusError>
sourcepub fn report_end_proposing_reason(&self, reason: EndProposingReason)
pub fn report_end_proposing_reason(&self, reason: EndProposingReason)
Report the reason why the proposing ended.