Class: EventTracer::AppsignalLogger

Inherits:
MetricLogger 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
}.freeze
DEFAULT_METRIC_TYPE =
:increment_counter
DEFAULT_COUNTER =
1

Instance Attribute Summary

Attributes inherited from MetricLogger

#allowed_tags

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.



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

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