Closed scan closed 4 years ago
The setting of the registering is not atomic, so it could happen that on start up, the registered flag is not yet set when a second thread initialises the Prometheus interceptor again. Simply adding a rescue for this case prevents an exception.
registered
This should be idiomatic anyway.
The setting of the registering is not atomic, so it could happen that on start up, the
registered
flag is not yet set when a second thread initialises the Prometheus interceptor again. Simply adding a rescue for this case prevents an exception.This should be idiomatic anyway.