Re-exports§
pub use pastey as paste;pub use prometheus;
Modules§
Macros§
- count_
tts macro_rules!implementation ofcount_tts. Source: https://github.com/camsteffen/count-tts- counter_
bundle - counter_bundle declares a struct holding a bundle of counters that should be incremented or decremented together. This is used to facilitate computing rolled up metrics.
- declare_
metric - This macro aids in declaring metrics. Usage looks like:
- label_
key - Used to declare a label key struct suitable for use in registering counters in the counter registry.
- mandatory_
doc - This macro matches a series of doc comment attributes. Multi-line doc comments appear as a sequence of doc comment attributes, so we need to be able to match both the individual case and the sequence, and map them back to a single string.
Structs§
- Atomic
Counter - Counter
Description - Counter
Registry - Either a Counter or Gauge with a specific name, where there can be multiple labelled counter instances.
- Weak
Atomic Counter
Enums§
Statics§
- COUNTER_
METADATA - Accumulates metric metadata
Traits§
- Atomic
Counter Entry - This trait enables having prunable and non-pruning value types in the CounterRegistry.
Functions§
- export_
metadata - split_
help - Utility function for dealing with doc comment metadata. Look for two successive line breaks; if they are present they denote the break between the short first-logical-line and a longer descriptive exposition. Returns that first logical line and the optional exposition.