Class: Metrics::Instruments::Instrument

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-metrics/instruments/instrument.rb

Direct Known Subclasses

Counter, Gauge, Histogram, Meter, Timer

Instance Method Summary collapse

Instance Method Details

#tag(key, value) ⇒ Object



8
9
10
11
# File 'lib/ruby-metrics/instruments/instrument.rb', line 8

def tag(key, value)
  @tags ||= {}
  @tags[key] = value
end

#tagsObject



4
5
6
# File 'lib/ruby-metrics/instruments/instrument.rb', line 4

def tags
  @tags ||= {}
end