This PR adds an initialize_at_zero method to the Prometheus and OpenTelemetry trackers, which is called when a function is initially decorated. The changes include tests.
This will allow tooling that connects to Prometheus to be able to tell which functions (and objectives!) are being tracked, even if those functions haven't been called since adding autometrics to the codebase.
Additionally, I removed old code that we won't be using anymore 🧹
This PR adds an
initialize_at_zero
method to the Prometheus and OpenTelemetry trackers, which is called when a function is initially decorated. The changes include tests.This will allow tooling that connects to Prometheus to be able to tell which functions (and objectives!) are being tracked, even if those functions haven't been called since adding autometrics to the codebase.
Additionally, I removed old code that we won't be using anymore 🧹