You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: metrics.rs
    path of file: ./repos/holochain/crates/holochain/src/conductor
    
    the code of the file until where you have to start completion: use opentelemetry_api::{global::meter_with_version, metrics::*};

pub type P2pEventDurationMetric = Histogram<f64>;
pub type PostCommitDurationMetric = Histogram<f64>;

pub fn create_p2p_event_duration_metric
    
pub fn create_post_commit_duration_metric() -> P2pEventDurationMetric {
    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()
}