Module: StatsD::Instrument::StrictMetaprogramming

Included in:
StatsD::Instrument
Defined in:
lib/statsd/instrument/strict.rb

Instance Method Summary collapse

Instance Method Details

#statsd_count(method, name, sample_rate: nil, tags: nil, no_prefix: false, client: nil) ⇒ Object



127
128
129
130
# File 'lib/statsd/instrument/strict.rb', line 127

def statsd_count(method, name, sample_rate: nil, tags: nil, no_prefix: false, client: nil)
  check_method_and_metric_name(method, name)
  super
end

#statsd_count_if(method, name, sample_rate: nil, tags: nil, no_prefix: false, client: nil) ⇒ Object



122
123
124
125
# File 'lib/statsd/instrument/strict.rb', line 122

def statsd_count_if(method, name, sample_rate: nil, tags: nil, no_prefix: false, client: nil)
  check_method_and_metric_name(method, name)
  super
end

#statsd_count_success(method, name, sample_rate: nil, tags: nil, no_prefix: false, client: nil, tag_error_class: false) ⇒ Object



116
117
118
119
120
# File 'lib/statsd/instrument/strict.rb', line 116

def statsd_count_success(method, name, sample_rate: nil, tags: nil, no_prefix: false, client: nil,
  tag_error_class: false)
  check_method_and_metric_name(method, name)
  super
end

#statsd_distribution(method, name, sample_rate: nil, tags: nil, no_prefix: false, client: nil) ⇒ Object



111
112
113
114
# File 'lib/statsd/instrument/strict.rb', line 111

def statsd_distribution(method, name, sample_rate: nil, tags: nil, no_prefix: false, client: nil)
  check_method_and_metric_name(method, name)
  super
end

#statsd_measure(method, name, sample_rate: nil, tags: nil, no_prefix: false, client: nil) ⇒ Object



106
107
108
109
# File 'lib/statsd/instrument/strict.rb', line 106

def statsd_measure(method, name, sample_rate: nil, tags: nil, no_prefix: false, client: nil)
  check_method_and_metric_name(method, name)
  super
end