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

Create a CounterVec and registers to a custom 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 = opts!("test_macro_counter_vec_1", "help");
let counter_vec = register_counter_vec_with_registry!(opts, &["a", "b"], custom_registry);
assert!(counter_vec.is_ok());

let counter_vec = register_counter_vec_with_registry!("test_macro_counter_vec_2", "help", &["a", "b"], custom_registry);
assert!(counter_vec.is_ok());