We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8431a94 commit 60c1806Copy full SHA for 60c1806
src/autometrics/tracker/opentelemetry.py
@@ -128,6 +128,7 @@ def __histogram(
128
def set_build_info(self, commit: str, version: str):
129
"""Observe the build info."""
130
if not self._has_set_build_info:
131
+ self._has_set_build_info = True
132
self.__up_down_counter_instance.add(
133
1.0,
134
attributes={
src/autometrics/tracker/prometheus.py
@@ -106,6 +106,7 @@ def _histogram(
106
107
"""Observe the build info. Should only be called once per tracker instance"""
108
109
110
self.prom_gauge.labels(commit, version).set(1)
111
112
# def start(self, function: str = None, module: str = None):
0 commit comments