Struct prometrics::metrics::HistogramBuilder [] [src]

pub struct HistogramBuilder { /* fields omitted */ }

Histogram builder.

Methods

impl HistogramBuilder
[src]

[src]

Makes a builder for histograms named name.

[src]

Makes a builder with the specified linear buckets.

[src]

Makes a builder with the specified exponential buckets.

Important traits for &'a mut W
[src]

Sets the namespace part of the metric name of this.

Important traits for &'a mut W
[src]

Sets the subsystem part of the metric name of this.

Important traits for &'a mut W
[src]

Sets the help of this.

Important traits for &'a mut W
[src]

Adds a label.

Note that name will be validated in the invocation of the finish method.

The name "le" is reserved for designating buckets.

Important traits for &'a mut W
[src]

Adds a registry to which the resulting histograms will be registered..

Important traits for &'a mut W
[src]

Adds the default registry.

Important traits for &'a mut W
[src]

Adds a bucket.

[src]

Builds a histogram.

Errors

This method will return Err(_) if one of the following conditions is satisfied:

  • Any of the name of the metric or labels is malformed
  • There is a bucket whose upper bound is NaN

Trait Implementations

impl Debug for HistogramBuilder
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations