penumbra_dex::component

Module metrics

Source
Available on crate feature component only.
Expand description

Crate-specific metrics functionality.

This module re-exports the contents of the metrics crate. This is effectively a way to monkey-patch the functions in this module into the metrics crate, at least from the point of view of the other code in this crate.

Code in this crate that wants to use metrics should use crate::metrics;, so that this module shadows the metrics crate.

This trick is probably good to avoid in general, because it could be confusing, but in this limited case, it seems like a clean option.

Modules§

  • Atomic types used for metrics.

Macros§

Structs§

  • A counter.
  • A gauge.
  • A histogram.
  • A metric identifier.
  • Key-specific hashing algorithm.
  • Name component of a key.
  • Metadata for a metric key in the form of a key/value pair.
  • Describes the level of verbosity of a metric event.
  • Metadata describing a metric event. This provides additional context to Recorder, allowing for fine-grained filtering.
  • A no-op recorder.
  • Error returned when trying to install a global recorder when another has already been installed.

Enums§

Constants§

Traits§

Functions§

Type Aliases§