Class: EventTracer::AppsignalLogger

Inherits:
BasicDecorator show all
Defined in:
lib/event_tracer/appsignal_logger.rb

Constant Summary collapse

SUPPORTED_METRIC_TYPES =
{
  counter: :increment_counter,
  distribution: :add_distribution_value,
  gauge: :set_gauge
}
DEFAULT_METRIC_TYPE =
:increment_counter
DEFAULT_COUNTER =
1

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BasicDecorator

#__getobj__, #__setobj__, #fail_result, #success_result

Constructor Details

#initialize(decoratee, allowed_tags: []) ⇒ AppsignalLogger

Returns a new instance of AppsignalLogger.



25
26
27
28
# File 'lib/event_tracer/appsignal_logger.rb', line 25

def initialize(decoratee, allowed_tags: [])
  super(decoratee)
  @allowed_tags = allowed_tags.freeze
end

Instance Attribute Details

#allowed_tagsObject (readonly)

Returns the value of attribute allowed_tags.



23
24
25
# File 'lib/event_tracer/appsignal_logger.rb', line 23

def allowed_tags
  @allowed_tags
end