Expand description
This crate contains core trait and struct definitions for metrique,
to allow for compatibility between (future) different major versions
of metrique. You should be using metrique directly rather than
this crate.
Modules§
- concat
- Utilities for concatenating strings
Structs§
- Counter
- A thin wrapper around
AtomicU64that implementsCloseValue. - Counter
Guard - A guard that decrements a
Counterwhen dropped. - Identity
- Inflects names to the identity case
- Kebab
Case - Inflects names to
kebab-case - Owned
Counter Guard - An owned guard that decrements a
Counterwhen dropped. - Pascal
Case - inflects names to
PascalCase - Snake
Case - Inflects names to
snake_case
Enums§
- Dynamic
Name Style - Runtime-selectable name style for metric field names.
Traits§
- Close
Entry - An object that can be closed into an InflectableEntry. This is the
normal way of generating a metric entry - by starting with a a struct
that implements this trait (that is generally generated using the
#[metrics]macro), wrapping it in aRootEntryto generate anEntry, and then emitting that to anEntrySink. - Close
Value - Close a given value
- Close
Value Ref - Close a value without taking ownership
- Inflectable
Entry - A trait for metric entries where the names of the fields can be “inflected”
using a
NameStyle. This defines the interface for metric sources that want to be able to generate metric structs that can be renamed without having any string operations happen at runtime. - Name
Style - This trait is used to describe name styles for
InflectableEntry.