[−][src]Trait ckb_metrics_runtime::AsScoped
A value that can be used as a metric scope.
This helper trait allows us to accept either a single string or a slice of strings to use as a scope, to avoid needing to allocate in the case where we want to be able to specify multiple scope levels in a single go.
Required methods
pub fn as_scoped(&'a self, base: Scope) -> Scope
[src]
Creates a new [Scope
] by adding self
to the base
scope.