# Functions
FromContext returns the metrics recorder from the context.
NewPromMetrics creates a new instance of promMetrics.
WithContext returns a new context with an metrics recorder.
# Interfaces
Metrics defines an interface to collect p2p metrics.