autometrics-dev / autometrics-shared

Resources used by all of the autometrics implementations
https://autometrics.dev
Apache License 2.0
11 stars 0 forks source link

Support aliasing metric names to handle refactors #19

Closed emschwartz closed 1 year ago

emschwartz commented 1 year ago

The libraries should support adding an alias for the function and module names. When you add one or multiple aliases, it should produce metrics using the new name as well as the old name.

As @gagbo pointed out in https://github.com/autometrics-dev/autometrics-rs/issues/66#issuecomment-1517625841, we need to make sure that we don't double-count metrics when using them for SLOs.

emschwartz commented 1 year ago

I'm going to close this for now but we can re-open it later when we plan to start working on it.