10 #define METRICS_STORE_ENTRY_PRIVATE
47 metrics_store_entry_free(entry));
64 bool comment_formatted =
false;
66 fmt(entry, data, comment_formatted);
67 comment_formatted =
true;
68 } SMARTLIST_FOREACH_END(entry);
108 metrics_store_entry_t *
110 const char *
name,
const char *help)
113 metrics_store_entry_t *entry;
143 tor_assert_unreached();
Headers for util_malloc.c.
@ METRICS_FORMAT_PROMETHEUS
void metrics_store_free_(metrics_store_t *store)
static void get_output(const metrics_store_t *store, buf_t *data, fmt_driver_fn_t fmt)
smartlist_t * metrics_store_get_all(const metrics_store_t *store, const char *name)
metrics_store_entry_t * metrics_store_add(metrics_store_t *store, metrics_type_t type, const char *name, const char *help)
void metrics_store_get_output(const metrics_format_t fmt, const metrics_store_t *store, buf_t *data)
metrics_store_t * metrics_store_new(void)
void() fmt_driver_fn_t(const metrics_store_entry_t *, buf_t *, bool no_comment)
static void metrics_store_free_void(void *p)
void metrics_store_reset(metrics_store_t *store)
Header for lib/metrics/metrics_store.c.
metrics_store_entry_t * metrics_store_entry_new(const metrics_type_t type, const char *name, const char *help)
Header for lib/metrics/metrics_store_entry.c.
void prometheus_format_store_entry(const metrics_store_entry_t *entry, buf_t *data, bool no_comment)
Header for feature/metrics/prometheus.c.
smartlist_t * smartlist_new(void)
void smartlist_add(smartlist_t *sl, void *element)
#define SMARTLIST_FOREACH_BEGIN(sl, type, var)
#define SMARTLIST_FOREACH(sl, type, var, cmd)
Macros to manage assertions, fatal and non-fatal.