prometheus / common

Go libraries shared across Prometheus components and libraries.
Apache License 2.0
259 stars 306 forks source link

`FmtText` was removed between v0.42.0 and v0.53.0 #635

Closed rootulp closed 1 month ago

rootulp commented 1 month ago

I'm upgrading a codebase from

-github.com/prometheus/common v0.42.0
+github.com/prometheus/common v0.53.0

and encountered these errors

telemetry/metrics.go:151:37: undefined: expfmt.FmtText
telemetry/metrics.go:158:51: undefined: expfmt.FmtText

However there was no mention of a deprecation of FmtText in the release notes between v0.42.0 and v0.53.0. When was it removed and what should consumers do instead of calling FmtText?

rootulp commented 1 month ago

It was dropped in this commit which was first included in v0.48.0. v0.48.0 release notes do mention something so I'll look at https://github.com/prometheus/common/pull/576 to try and resolve my issue.