Crate snarkos_metrics[][src]

Modules

connections
handshakes
inbound
misc
outbound
queues
snapshots
stats

Macros

counter
decrement_gauge
gauge
histogram
increment_counter
increment_gauge
register_counter
register_gauge
register_histogram

Structs

Key

A metric identifier.

KeyHasher

Key-specific hashing algorithm.

Label

Metadata for a metric key in the for of a key/value pair.

NoopRecorder

A no-op recorder.

SetRecorderError

The type returned by set_recorder if set_recorder has already been called.

Enums

GaugeValue

Value of a gauge operation.

Unit

Units for a given metric.

Traits

IntoF64

An object which can be converted into a f64 representation.

IntoLabels

A value that can be converted to a vector of Labels.

Recorder

A trait for registering and recording metrics.

Functions

initialize
recorder

Returns a reference to the recorder.

set_boxed_recorder

Sets the global recorder to a Box<Recorder>.

set_recorder

Sets the global recorder to a &'static Recorder.

set_recorder_racy

A thread-unsafe version of set_recorder.

try_recorder

Returns a reference to the recorder.

Type Definitions

SharedString

An allocation-optimized string.