Histogram.exponential constructor
Histogram.exponential({})
Construct a new Histogram with a name
, help
text, and optional
labelNames
. The count
buckets are exponential distributed starting at
start
with a distance growing exponentially by factor
.
If labelNames
are provided, use labels(...) to assign label values.
The optional collectCallback
is called at the beginning of collect and
allows to update the value of the histogram before collecting it.
Implementation
Histogram.exponential({
required String name,
required String help,
required double start,
required double factor,
required int count,
List<String> labelNames = const [],
Collect? collectCallback,
}) : this(
name: name,
help: help,
labelNames: labelNames,
buckets: _generateExponentialBuckets(start, factor, count),
collectCallback: collectCallback,
);