Skip to content

Comments

Use promauto for metrics registration#8

Merged
marefr merged 1 commit intomarefr:mainfrom
SuperQ:promauto
Mar 10, 2025
Merged

Use promauto for metrics registration#8
marefr merged 1 commit intomarefr:mainfrom
SuperQ:promauto

Conversation

@SuperQ
Copy link

@SuperQ SuperQ commented Mar 10, 2025

Avoid the need to use prometheus.MustRegister() in an init function by using the promauto library.

Avoid the need to use `prometheus.MustRegister()` in an init
function by using the promauto library.

Signed-off-by: SuperQ <superq@gmail.com>
Copy link
Owner

@marefr marefr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@marefr marefr merged commit 5640c6c into marefr:main Mar 10, 2025
2 checks passed
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.

2 participants