问题
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