Skip to content

Add module for registering metrics on initialization - #66

Open
brandonchinn178 wants to merge 12 commits into
bitnomial:masterfrom
brandonchinn178:v3-th
Open

brandonchinn178 wants to merge 12 commits into
bitnomial:masterfrom
brandonchinn178:v3-th

Conversation

@brandonchinn178

Copy link
Copy Markdown
Contributor

One issue with metrics being lazy is that the metrics won't be registered until they're first used, if defined as a top-level metric. This PR provides Prometheus.V3.TH for importing a list of metric names that can be registered in main. The import works even if the metric isn't exported by its module

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant