MetricKeyBuilder typedef

MetricKeyBuilder = String Function(String address)

Builds the metrics key of an event address.

The default key is the address string. A dynamic address can grow the registry; ObservabilityConfig.cardinalityLimit bounds it. An application that wants a coarser key can supply a builder.

Implementation

typedef MetricKeyBuilder = String Function(String address);