Generic UnlabelledHistorgram
Generic UnlabelledHistorgram
It is necessary to apply a value of type A
to this
histogram to be able to take any measurements.
Default Buckets
Default Buckets
Intended to cover a typical web/rpc request from milliseconds to seconds.
Constructor for a labelled Histogram.
Constructor for a labelled Histogram. Default buckets are defaults and are intended to cover a typical web/rpc request from milliseconds to seconds.
This generates a specific number of labels via Sized
, in combination with a function
to generate an equally Sized
set of labels from some type. Values are applied by position.
This counter needs to have a label applied to the UnlabelledHistogram in order to be measureable or recorded.
CollectorRegistry this Histogram will be registred with
The name of the Histogram.
The help string of the metric
The name of the labels to be applied to this metric
Function to take some value provided in the future to generate an equally sized list of strings as the list of labels. These are assigned to labels by position.
Constructor for a labelled Histogram.
Constructor for a labelled Histogram. Default buckets are defaults and are intended to cover a typical web/rpc request from milliseconds to seconds.
This generates a specific number of labels via Sized
, in combination with a function
to generate an equally Sized
set of labels from some type. Values are applied by position.
This counter needs to have a label applied to the UnlabelledHistogram in order to be measureable or recorded.
CollectorRegistry this Histogram will be registred with
The name of the Histogram.
The help string of the metric
The name of the labels to be applied to this metric
Function to take some value provided in the future to generate an equally sized list of strings as the list of labels. These are assigned to labels by position.
The buckets to measure observations by.
Constructor for a Histogram with no labels.
Constructor for a Histogram with no labels.
Constructor for a Histogram with no labels. Default buckets are defaults and are intended to cover a typical web/rpc request from milliseconds to seconds.
CollectorRegistry this Histogram will be registered with
The name of the Gauge
The help string of the metric
The buckets to measure observations by.
Persist a timed value into this Histogram
Persist a timed value into this Histogram
Histogram
The action to time
The unit of time to observe the timing in. Default Histogram buckets
are optimized for SECONDS
.
Persist a timed value into this Histogram in unit Seconds.
Persist a timed value into this Histogram in unit Seconds. This is exposed. since default buckets are in seconds it makes sense the general case will be to match the default buckets.
Histogram
The action to time
Histogram Constructors, Convenience Methods and Unsafe Histogram Access
Convenience function exposed here will also be exposed as implicit syntax enhancements on the Histogram