Class: EventTracer::DatadogLogger
- Inherits:
-
MetricLogger
- Object
- Delegator
- BasicDecorator
- MetricLogger
- EventTracer::DatadogLogger
- Defined in:
- lib/event_tracer/datadog_logger.rb
Constant Summary collapse
- SUPPORTED_METRIC_TYPES =
{ counter: :count, distribution: :distribution, gauge: :gauge, set: :set, histogram: :histogram }.freeze
- DEFAULT_METRIC_TYPE =
:count- DEFAULT_COUNTER =
1
Instance Attribute Summary
Attributes inherited from MetricLogger
Instance Method Summary collapse
-
#initialize(decoratee, allowed_tags: [], default_tags: {}) ⇒ DatadogLogger
constructor
A new instance of DatadogLogger.
Methods inherited from BasicDecorator
#__getobj__, #__setobj__, #fail_result, #success_result
Constructor Details
#initialize(decoratee, allowed_tags: [], default_tags: {}) ⇒ DatadogLogger
Returns a new instance of DatadogLogger.
26 27 28 29 30 |
# File 'lib/event_tracer/datadog_logger.rb', line 26 def initialize(decoratee, allowed_tags: [], default_tags: {}) super(decoratee) @allowed_tags = .freeze @default_tags = .freeze end |