holochain 0.6.0

Holochain, a framework for distributed applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use opentelemetry_api::{global::meter_with_version, metrics::*};

pub type PostCommitDurationMetric = Histogram<f64>;

pub fn create_post_commit_duration_metric() -> PostCommitDurationMetric {
    meter_with_version(
        "hc.conductor",
        None::<&'static str>,
        None::<&'static str>,
        Some(vec![]),
    )
    .f64_histogram("hc.conductor.post_commit.duration")
    .with_unit(Unit::new("s"))
    .with_description("The time spent executing a post commit")
    .init()
}