Skip to content
Snippets Groups Projects
Commit 0a562efa authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

link to dependency PR that helps

parent 1481e8a0
No related branches found
No related tags found
2 merge requests!264Server-side metric for spent ZKAPs for Prometheus,!265Add a metric for invalid ZKAP attempts
......@@ -158,6 +158,8 @@ def observe_spending_successes(metric, observations):
"""
Put some spending observations into a Histogram.
"""
# After https://github.com/prometheus/client_python/pull/734 we can get
# rid of the inner loop.
for (size, count) in observations:
for _ in range(count):
metric.observe(size)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment