Modules§
- atomics
- Atomic types used for metrics.
Macros§
- count
- counter
- describe
- describe_
counter - describe_
gauge - describe_
histogram - gauge
- histogram
- key_var
- metadata_
var
Structs§
- Config
Metrics - Counter
- A counter.
- Gauge
- A gauge.
- Histogram
- A histogram.
- Key
- A metric identifier.
- KeyHasher
- Key-specific hashing algorithm.
- KeyName
- Name component of a key.
- Label
- Metadata for a metric key in the form of a key/value pair.
- Level
- Verbosity of a metric.
- Local
Recorder Guard - Guard for setting a local recorder.
- Metadata
- Metadata describing a metric.
- Noop
Recorder - A no-op recorder.
- SetRecorder
Error - Error returned when trying to install a global recorder when another has already been installed.
Enums§
- Gauge
Value - Value of a gauge operation.
- Maybe
Recorder - Unit
- Units for a given metric.
Traits§
- Counter
Fn - A counter handler.
- GaugeFn
- A gauge handler.
- Histogram
Fn - A histogram handler.
- IntoF64
- An object which can be converted into a
f64representation. - Into
Labels - A value that can be converted to a vector of
Labels. - Recorder
- A trait for registering and recording metrics.
Functions§
- duration_
to_ seconds - set_
default_ local_ recorder - Sets the recorder as the default for the current thread for the duration of the lifetime of the returned
LocalRecorderGuard. - set_
global_ recorder - Sets the global recorder.
- spawn_
server - with_
local_ recorder - Runs the closure with the given recorder set as the global recorder for the duration.
- with_
recorder - Runs the closure with a reference to the current recorder for this scope.
Type Aliases§
- Shared
String - An allocation-optimized string.