go-kit/kit

Using prometheus collector MustRegister in New{Counter,Gauge} and possible panic

Open

#937 opened on Nov 14, 2019

View on GitHub
 (7 comments) (0 reactions) (0 assignees)Go (2,446 forks)batch import
bughelp wantednewbie friendly

Repository metrics

Stars
 (27,422 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Thanks for the wonderful product! I think it would be fair to point the limitations of calling New in the documentation, since calling New again calls panic.

Contributor guide