set

operator fun <T : Metric> set(key: MetricKey<T>, value: T)

Stores value under key, replacing any existing metric with that key.