Module: AtlasEngine::MetricsHelper

Extended by:
T::Sig
Included in:
AddressValidation::Es::Datastore
Defined in:
app/helpers/atlas_engine/metrics_helper.rb

Instance Method Summary collapse

Instance Method Details

#measure_distribution(name:, sample_rate: 1.0, tags: [], &block) ⇒ Object



16
17
18
19
20
21
22
23
# File 'app/helpers/atlas_engine/metrics_helper.rb', line 16

def measure_distribution(name:, sample_rate: 1.0, tags: [], &block)
  StatsD.distribution(
    name,
    sample_rate: sample_rate,
    tags: tags,
    &block
  )
end