Method: ElasticAPM::Metrics::Registry#collect_and_send
- Defined in:
- lib/elastic_apm/metrics.rb
#collect_and_send ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
104 105 106 107 108 109 110 111 |
# File 'lib/elastic_apm/metrics.rb', line 104 def collect_and_send return unless @config.recording? metricsets = collect metricsets.compact! metricsets.each do |m| callback.call(m) end end |