p2p/protocol/identify/metrics library

Metrics for the identify service.

This file contains the interface and implementation for collecting metrics from the identify service.

This is a port of the Go implementation from go-libp2p/p2p/protocol/identify/metrics.go to Dart, using native Dart idioms.

Classes

LoggingMetricsTracer
A simple metrics tracer that logs metrics to the console.
MetricsTracer
MetricsTracer is an interface for collecting metrics from the identify service.
NoopMetricsTracer
A no-op implementation of MetricsTracer that doesn't collect any metrics.

Enums

IdentifyPushSupport
The support status for the identify push protocol.