Docs.rs
  • metrics-util-0.20.0
    • metrics-util 0.20.0
    • Permalink
    • Docs.rs crate page
    • MIT
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • tobz
    • Dependencies
      • ahash ^0.8 normal optional
      • aho-corasick ^1 normal optional
      • crossbeam-epoch ^0.9 normal optional
      • crossbeam-utils ^0.8 normal optional
      • hashbrown ^0.15 normal optional
      • indexmap ^2.6 normal optional
      • metrics ^0.24 normal
      • ordered-float ^4.2 normal optional
      • quanta ^0.12 normal optional
      • radix_trie ^0.2 normal optional
      • rand ^0.9 normal optional
      • rand_xoshiro ^0.7 normal optional
      • sketches-ddsketch ^0.3 normal optional
      • approx ^0.5 dev
      • criterion =0.3.3 dev
      • crossbeam-queue ^0.3 dev
      • getopts ^0.2 dev
      • hdrhistogram ^7.2 dev
      • mockall ^0.12 dev
      • ndarray ^0.16 dev
      • ndarray-stats ^0.6 dev
      • noisy_float ^0.2 dev
      • ordered-float ^4.2 dev
      • predicates ^3.1.0 dev
      • predicates-core ^1.0.6 dev
      • predicates-tree ^1.0.9 dev
      • quickcheck ^1 dev
      • quickcheck_macros ^1 dev
      • rand ^0.9 dev
      • sketches-ddsketch ^0.3 dev
      • tracing ^0.1 dev
      • tracing-subscriber ^0.3 dev
    • Versions
    • 100% of the crate is documented
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate metrics_util

metrics_util0.20.0

  • All Items

Crate Items

  • Modules
  • Structs
  • Enums
  • Traits
  • Functions

Crates

  • metrics_util

Crate metrics_util

Source
Expand description

Helper types and functions used within the metrics ecosystem.

Modules§

debuggingdebugging
Debugging utilities.
layers
Layers are composable helpers that can be “layered” on top of an existing Recorder to enhance or alter its behavior as desired, without having to change the recorder implementation itself.
registryregistry
High-performance metrics storage.
storagestorage
Various data structures for storing metric data.

Structs§

CompositeKey
A composite key that stores both the metric key and the metric kind.
DefaultHashable
A wrapper type that provides Hashable for any type that is Hash.
MetricKindMask
Metric kind mask.
Quantile
A quantile that has both the raw value and a human-friendly display label.
RecoverableRecorder
Wraps a recorder to allow for recovering it after being installed.

Enums§

MetricKind
Metric kind.

Traits§

Hashable
A type that can hash itself.

Functions§

parse_quantiles
Parses a slice of floating-point values into a vector of Quantiles.

Results

Settings
Help
    struct
    metrics_util::storage::AtomicBucket
    A lock-free bucket with snapshot capabilities.
    method
    metrics_util::storage::AtomicBucket::clear
    &AtomicBucket<T> -> ()
    Clears the bucket.
    method
    metrics_util::storage::AtomicBucket::is_empty
    &AtomicBucket<T> -> bool
    Checks whether or not this bucket is empty.
    method
    metrics_util::storage::AtomicBucket::push
    &AtomicBucket<T>, T -> ()
    Pushes an element into the bucket.
    method
    metrics_util::storage::AtomicBucket::record
    &AtomicBucket<f64>, f64 -> ()
    method
    metrics_util::storage::AtomicBucket::data
    &AtomicBucket<T> -> Vec<T>
    Collects all of the elements written to the bucket.
    method
    metrics_util::storage::AtomicBucket::fmt
    &AtomicBucket<T>, &mut Formatter -> Result
    method
    metrics_util::storage::AtomicBucket::data_with
    &AtomicBucket<T>, F -> ()
    Iterates all of the elements written to the bucket, …
    method
    metrics_util::storage::AtomicBucket::clear_with
    &AtomicBucket<T>, F -> ()
    Clears the bucket, invoking f for every block that will be …
    method
    metrics_util::storage::AtomicBucket::new
    -> AtomicBucket<T>
    Creates a new, empty bucket.
    method
    metrics_util::storage::AtomicBucket::default
    -> AtomicBucket<T>