digitalocean / prometheus-client-c

A Prometheus Client in C
Other
160 stars 79 forks source link

Allow prom_collector_registry_default_init to return success #33

Closed andrewwa0 closed 3 years ago

andrewwa0 commented 4 years ago

When prom_collector_registry_default_init is called for the first time, there's no way it can return zero (success). The return value of prom_collector_registry_enable_process_metrics should be passed back to the caller.