OptionalgetReturn an arbitrary summary object for reporting. Optional.
Increment a named counter by value (default 1). e.g. "matches_total"
Optionalvalue: numberSet a named gauge to an absolute value. e.g. "avg_confidence"
Record a single observation into a named histogram. e.g. "identify_latency_ms"
Convenience helper called by DeviceManager after each identify()
call. Aggregates latency, confidence, and device lifecycle counters in one
shot.
Wall-clock time taken by the identify call.
Final confidence score (0–100).
true when no existing device was matched.
Number of pre-filter candidates evaluated.
true when an existing device was matched above threshold.
Metrics sink interface consumed by DeviceManager. Implementations can emit to Prometheus, StatsD, OpenTelemetry, or any other backend. The built-in defaultMetrics keeps values in memory.