MetricKey

@Serializable
data class MetricKey(val name: String, val kind: MetricKind, val attributes: Map<String, String> = emptyMap())

The identity of a single metric time series.

Metrics with the same name and kind but different attributes are distinct series — this is the standard OpenTelemetry label-set model. MetricKey is the map key inside WarpMetricExporter; use the same key on every increment/set/add to accumulate into the same series.

Parameters

name

Human-readable metric name. Must not be blank.

attributes

Key/value label set that differentiates series within the same metric name (e.g. {"path" to "/api/v1"}). Empty means no labels.

Constructors

Link copied to clipboard
constructor(name: String, kind: MetricKind, attributes: Map<String, String> = emptyMap())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard