summary

fun summary(registry: PrometheusRegistry = PrometheusRegistry.defaultRegistry, block: Summary.Builder.() -> Unit): Summary

Creates, configures, and registers a Prometheus Summary.

Return

the registered Summary instance.

Parameters

registry

the registry to register the summary with.

block

a lambda with Summary.Builder as receiver for configuring name, help, quantiles (quantile(...)), and label names.