class ElasticAPM::Metrics::Metric
def collect
def collect @mutex.synchronize do collected = @value @value = initial_value if reset_on_collect? return nil if reset_on_collect? && collected == 0 collected end end
def collect @mutex.synchronize do collected = @value @value = initial_value if reset_on_collect? return nil if reset_on_collect? && collected == 0 collected end end