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::Summary
    A quantile sketch with relative-error guarantees.
    method
    metrics_util::storage::Summary::max
    &Summary -> f64
    Gets the maximum value this summary has seen so far.
    method
    metrics_util::storage::Summary::min
    &Summary -> f64
    Gets the minimum value this summary has seen so far.
    method
    metrics_util::storage::Summary::clone
    &Summary -> Summary
    method
    metrics_util::storage::Summary::count
    &Summary -> usize
    Gets the number of samples in this summary.
    method
    metrics_util::storage::Summary::is_empty
    &Summary -> bool
    Whether or not this summary is empty.
    method
    metrics_util::storage::Summary::estimated_size
    &Summary -> usize
    Gets the estimized size of this summary, in bytes.
    method
    metrics_util::storage::Summary::add
    &mut Summary, f64 -> ()
    Adds a sample to the summary.
    method
    metrics_util::storage::Summary::quantile
    &Summary, f64 -> Option<f64>
    Gets the estimated value at the given quantile.
    method
    metrics_util::storage::Summary::fmt
    &Summary, &mut Formatter -> Result
    method
    metrics_util::storage::Summary::merge
    &mut Summary, &Summary -> Result<(), >
    Merge another Summary into this one.
    method
    metrics_util::storage::Summary::with_defaults
    -> Summary
    Creates a new Summary with default values.
    method
    metrics_util::storage::Summary::new
    f64, u32, f64 -> Summary
    Creates a new Summary.
    method
    metrics_util::storage::Summary::clone
    &Summary -> Summary