shotover / shotover-proxy

L7 data-layer proxy
https://docs.shotover.io
Apache License 2.0
82 stars 16 forks source link

Update metrics + metrics-exporter-prometheus #1649

Closed rukai closed 4 weeks ago

rukai commented 1 month ago

These two crates must be upgraded together since metrics-exporter-prometheus exposes types from metrics in its public API that we use.

However, the new version of metrics has improved its diagnostics such that unused diagnostics are shown as compiler warnings. We have 2 such instances of these warnings. image

Since CI will prevent merging with warnings, we need to either ignore the warnings or fix them. I can see that our usages that are getting warned do have an associated performance cost that we should try to avoid.

But also I think there are legitimate uses of creating a metric without using it so I've made a comment to see what upstream thinks: https://github.com/metrics-rs/metrics/pull/475#issuecomment-2144361030

TODO, all in separate PRs: