Describe the solution you'd like
Currently the metrics feature will collect metrics into datastructures that can be polled. However this is not useful for sending such metrics to an existing APM via opentelemetry because it is impossible to feed average min and max values directly into a histogram.
Instead of directly collecting metrics it would be useful if users can register a collector implementation so that they can collate metrics themselves.
Describe the solution you'd like
Currently the metrics feature will collect metrics into datastructures that can be polled. However this is not useful for sending such metrics to an existing APM via opentelemetry because it is impossible to feed average min and max values directly into a histogram.
Instead of directly collecting metrics it would be useful if users can register a collector implementation so that they can collate metrics themselves.