Class: EventTracer::AppsignalLogger
- Inherits:
-
BasicDecorator
- Object
- Delegator
- BasicDecorator
- EventTracer::AppsignalLogger
- 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
-
#allowed_tags ⇒ Object
readonly
Returns the value of attribute allowed_tags.
Instance Method Summary collapse
-
#initialize(decoratee, allowed_tags: []) ⇒ AppsignalLogger
constructor
A new instance of AppsignalLogger.
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 = .freeze end |
Instance Attribute Details
#allowed_tags ⇒ Object (readonly)
Returns the value of attribute allowed_tags.
23 24 25 |
# File 'lib/event_tracer/appsignal_logger.rb', line 23 def @allowed_tags end |