prometheus::register_untyped_vec
[−]
[src]
macro_rules! register_untyped_vec { ( $ OPTS : expr , $ LABELS_NAMES : expr ) => { ... }; ( $ NAME : expr , $ HELP : expr , $ LABELS_NAMES : expr ) => { ... }; ( $ NAME : expr , $ HELP : expr , $ CONST_LABELS : expr , $ LABELS_NAMES : expr ) => { ... }; }
Create a UntypedVec and register to default registry.
Examples
let opts = opts!("test_macro_untyped_vec_1", "help", labels!{"test" => "hello", "foo" => "bar",}); let untyped_vec = register_untyped_vec!(opts, &["a", "b"]); assert!(untyped_vec.is_ok()); let untyped_vec = register_untyped_vec!("test_macro_untyped_vec_2", "help", &["a", "b"]); assert!(untyped_vec.is_ok()); let untyped_vec = register_untyped_vec!("test_macro_untyped_vec_3", "help", labels!{"test" => "hello", "foo" => "bar",}, &["a", "b"]); assert!(untyped_vec.is_ok());