Skip to content

Add translation layer to support breaking metric #2213

@discordianfish

Description

@discordianfish

We want to change some metric names, for example #2074, but want to avoid a breaking change before the next major release.

Therefor I suggest to introduce a translation layer that allows us to expose new, breaking metrics while preserving the existing metrics by translating the names. Here is an example to illustrate:
https://gist.github.com/discordianfish/4c1760cf0e41c98ba5136e6e55b3e49b

For it to not be a breaking change, I'd suggest exposing the translated metrics on /metrics and the new ones on /metrics/next

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions