Use OpenTelemetry for metrics
Currently we use Prometheus instrumentation and metrics export. In the future we may want to switch to OpenTelemetry. Go SDK for metrics is currently in ALPHA, too early to start using it. The API is being broken all the time.
A related question is how to export Prometheus metrics from libraries when we switch to OpenTelemetry for instrumentation/export of metrics.
We can use OTEL API for metrics and export those metrics as part of the Prometheus endpoint for scraping. We need to convert all our custom metrics into OTEL.
Edited by Mikhail Mazurskiy