macro_rules! register_histogram_vec_with_registry {
    ($HOPTS:expr, $LABELS_NAMES:expr, $REGISTRY:expr $(,)?) => { ... };
    ($NAME:expr, $HELP:expr, $LABELS_NAMES:expr, $REGISTRY:expr $(,)?) => { ... };
    ($NAME:expr, $HELP:expr, $LABELS_NAMES:expr, $BUCKETS:expr, $REGISTRY:expr $(,)?) => { ... };
}
Expand description

Create a HistogramVec and registers to default registry.

§Examples

let mut labels = HashMap::new();
labels.insert("mykey".to_string(), "myvalue".to_string());
let custom_registry = Registry::new_custom(Some("myprefix".to_string()), Some(labels)).unwrap();

let opts = histogram_opts!("test_macro_histogram_vec_1", "help");
let histogram_vec = register_histogram_vec_with_registry!(opts, &["a", "b"], custom_registry);
assert!(histogram_vec.is_ok());

let histogram_vec =
    register_histogram_vec_with_registry!("test_macro_histogram_vec_2", "help", &["a", "b"], custom_registry);
assert!(histogram_vec.is_ok());

let histogram_vec = register_histogram_vec_with_registry!("test_macro_histogram_vec_3",
                                            "help",
                                            &["test_label"],
                                            vec![0.0, 1.0, 2.0], custom_registry);
assert!(histogram_vec.is_ok());