-
Notifications
You must be signed in to change notification settings - Fork 151
Closed
Description
I am trying to use the promethus client in a Rack application using Grape.
Since Grape APIs do not have an initialize block, I am somewhat lost as to what the best place is to create the Registry and register metrics.
Am I meant to only ever use a single Client::Registry throughout my code or can I create new ones where I need them?
Will they share the registered metrics?
I suspect not, and if that is correct, I would appreciate some pointers as to the preferred way of handling the Registry. Should I wrap it in a Singleton?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels