Struct tacho::Scope [] [src]

pub struct Scope { /* fields omitted */ }

Supports creation of scoped metrics.

Scopes may be cloned without copying the underlying metrics registry.

Labels may be attached to the scope so that all metrics created by the Scope are labeled.

Methods

impl Scope
[src]

Accesses scoping labels.

Adds a label into scope (potentially overwriting).

Appends a prefix to the current scope.

Creates a Counter with the given name.

Creates a Gauge with the given name.

Creates a Stat with the given name.

The underlying histogram is automatically resized as values are added.

Creates a Stat with the given name and histogram paramters.

Trait Implementations

impl Clone for Scope
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more