Is the Prometheus Java Summary metric thread-safe?

做~自己de王妃 提交于 2020-01-07 06:19:25

问题


Is the Prometheus Java Summary object thread-safe? If I declare it static in a class, it will be used by all instances of the class. Does Prometheus implement thread-safety for this metric object?


回答1:


Prometheus client libraries take care of details like thread safety for direction instrumentation such as the Summary class.



来源:https://stackoverflow.com/questions/48102787/is-the-prometheus-java-summary-metric-thread-safe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!