There is an issue with using the Prometheus Counter.java via the Micrometer dependency, so if you want to use the Prometheus Counter you need to use the Prometheus dependency. But Ktor uses Micrometer for metrics.
Has anyone encountered this dependency clash and found a solution? 😿
Issue:
https://github.com/micrometer-metrics/micrometer/issues/5225#issuecomment-2174237595