Module: Multimeter::Metrics::Dsl
- Defined in:
- lib/multimeter.rb
Instance Method Summary collapse
Instance Method Details
#instance_gauges ⇒ Object
217 218 219 |
# File 'lib/multimeter.rb', line 217 def instance_gauges @instance_gauges || [] end |
#instance_metrics ⇒ Object
221 222 223 |
# File 'lib/multimeter.rb', line 221 def instance_metrics @instance_metrics || [] end |
#multimeter_registry ⇒ Object
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 |
# File 'lib/multimeter.rb', line 201 def multimeter_registry @multimeter_registry ||= begin package, _, class_name = self.name.rpartition('::') g = group || package s = scope || class_name case registry_mode when :linked ::Multimeter.global_registry.sub_registry(s) when :global ::Multimeter.global_registry else ::Multimeter.registry(g, s) end end end |