histogram

fun histogram(name: String, block: HistogramBuilder.() -> Unit): Histogram

A DSL-style function to create and register a Histogram using a HistogramBuilder. Creates a histogram with the specified name and configuration defined in the block.

Return

A configured Histogram instance.

Parameters

name

The name of the histogram.

block

A configuration block for the histogram.