Skip to main content

Module metrics

Module metrics 

Source
Expand description

The shared event-to-metric mapping of the bundled exporters.

Every Event maps to exactly one MetricKind: a counter or an observation (timer, age, size, ratio). The kind fixes the metric’s label set and value so the Prometheus and Datadog exporters, and the TypeScript and Go ports, publish the same wire contract. Logical cache keys never appear here: labels are bounded enumerations plus the namespace, use case and key type.

Enums§

MetricKind
The metric an Event feeds. Variant names match the TypeScript adapter method names and the Go metricKinds table.