summaryrefslogtreecommitdiff
path: root/src/lib/metrics/metrics_common.h
AgeCommit message (Collapse)Author
2023-03-13metrics: Add support for histograms.Gabriela Moldovan
This will enable us to add e.g. circuit build metrics (#40717). Signed-off-by: Gabriela Moldovan <gabi@torproject.org>
2021-05-12metrics: Move helper function to lib/metricsDavid Goulet
It is a common function that a lot of subsystem can use which is to format a label so move it out of the HS subsystem into the more generic metrics library. Signed-off-by: David Goulet <dgoulet@torproject.org>
2021-03-12Update copyrights to 2021, using "make update-copyright"Nick Mathewson
2020-10-27lib/metrics: Fix wrong macro expansionDavid Goulet
The "METRICS_PREFIX" was not expanded but rather used as a litteral. Fix that by just removing the define and using "tor_" directly. Reviewed-by: Alexander Færøy <ahf@torproject.org> Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-10-27metrics: Add tor_ namespace to all metricsDavid Goulet
Closes #40063 Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-10-27lib: New metrics libraryDavid Goulet
Used to provide an interface to create metrics store and update the entries. Related to #40063 Signed-off-by: David Goulet <dgoulet@torproject.org>