Closed brettimus closed 1 year ago
Update: OTEL support will be dependent on resolution of https://github.com/open-telemetry/opentelemetry-python/issues/3071 (I'm working on a PR)
I think we can treat the OTEL support as non-blocking, since I'm not sure how long it will take for my PR on opentelemetry-python to get reviewed/merged/released
https://github.com/open-telemetry/opentelemetry-python/pull/3306
Implements #25
Description for Reviewers
We should discuss how we want to pull in the commit and version info, especially in relation to the expected behavior in VSCode.
What Changed
Add an instance method of
set_build_info
to both the Prometheus and Otel trackersset_build_info
is only called once (per tracker instance)UpDownCounter
.When
create_tracker
is called, we will automatically callset_build_info
with theAUTOMETRICS_COMMIT
andAUTOMETRICS_VERSION
environment variablesUpdate PromQL queries to use commit and version info
TODO
build_info
set_build_info
once