Skip to content

Conversation

@jsha
Copy link
Contributor

@jsha jsha commented Nov 4, 2025

This was accidentally deleted along with the idMismatchCounter in #8445.

This was accidentally deleted along with the idMismatchCounter
Copy link
Contributor

@aarongable aarongable left a comment

Choose a reason for hiding this comment

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

TIL that stats.MustRegister is variadic

@jsha jsha marked this pull request as ready for review November 4, 2025 17:44
@jsha jsha requested a review from a team as a code owner November 4, 2025 17:44
@jsha jsha requested a review from jprenken November 4, 2025 17:44
mcpherrinm added a commit that referenced this pull request Nov 5, 2025
This was accidentally deleted along with the idMismatchCounter in #8445.

This is an alternative approach to #8474, and perhaps a reasonable default
pattern for all stats registration in Boulder.
@mcpherrinm
Copy link
Contributor

I think we should consider using promauto to register metrics to avoid explicit registration calls.

Alternate PR:
#8480

@jsha jsha closed this Nov 6, 2025
aarongable pushed a commit that referenced this pull request Nov 6, 2025
This was accidentally deleted along with the idMismatchCounter in #8445.

This is an alternative approach to #8474, and perhaps a reasonable
default pattern for all stats registration in Boulder.

For more on promauto, see its documentation:
https://pkg.go.dev/github.com/prometheus/client_golang@v1.23.2/prometheus/promauto
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.

5 participants