unit

fun unit(unit: String)

Sets the unit of the metric.

Parameters

unit

The unit of measurement (e.g., "ms", "requests").