You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
several times I've seen exceptions that there are concurrent reads and writes on a map. The map in question is registry.metrics.
This apparently happens in the case that values are iterated in the map while new ones are added by GetOrRegister() or Register().
I assume this is due to the fact that Get()/Register()/GetOrRegister() functions all use locking while Each() and GetAll() don't.
Could this be added so that the map access can happen thread-safe?
The text was updated successfully, but these errors were encountered:
Hi,
several times I've seen exceptions that there are concurrent reads and writes on a map. The map in question is registry.metrics.
This apparently happens in the case that values are iterated in the map while new ones are added by GetOrRegister() or Register().
I assume this is due to the fact that Get()/Register()/GetOrRegister() functions all use locking while Each() and GetAll() don't.
Could this be added so that the map access can happen thread-safe?
The text was updated successfully, but these errors were encountered: