softwaremill / sttp

The Scala HTTP client you always wanted!
https://sttp.softwaremill.com
Apache License 2.0
1.46k stars 309 forks source link

Prometheus backend wrapper using too old a version of underlying JVM prometheus client #2246

Closed mihaisoloi closed 3 months ago

mihaisoloi commented 3 months ago

The CollectorRegistry has been renamed and it's now PrometheusRegistry, if you interact with Micrometer you can't use this integration because of the old version sttp prometheus-backend is using.

mihaisoloi commented 3 months ago

I'm referring to this https://github.com/prometheus/client_java/blob/main/prometheus-metrics-model/src/main/java/io/prometheus/metrics/model/registry/PrometheusRegistry.java

mihaisoloi commented 3 months ago

Ok, just realised that this is only the case for sttp3 and it's fixed in sttp4