Module: Multimeter::Metrics::Dsl
- Defined in:
- lib/multimeter.rb
Instance Method Summary collapse
Instance Method Details
#instance_gauges ⇒ Object
214 215 216 |
# File 'lib/multimeter.rb', line 214 def instance_gauges @instance_gauges || [] end |
#instance_metrics ⇒ Object
218 219 220 |
# File 'lib/multimeter.rb', line 218 def instance_metrics @instance_metrics || [] end |
#multimeter_registry ⇒ Object
198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 |
# File 'lib/multimeter.rb', line 198 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 |