Struct metrics_util::layers::PrefixLayer
source · pub struct PrefixLayer(_);
Expand description
A layer for applying a prefix to every metric key.
More information on the behavior of the layer can be found in Prefix
.
Implementations§
source§impl PrefixLayer
impl PrefixLayer
sourcepub fn new<S: Into<String>>(prefix: S) -> PrefixLayer
pub fn new<S: Into<String>>(prefix: S) -> PrefixLayer
Creates a new PrefixLayer
based on the given prefix.