Module: Datadog::Core::Telemetry::Logger

Defined in:
lib/datadog/core/telemetry/logger.rb

Overview

INTERNAL USAGE ONLY ===

Report telemetry logs via delegating to the telemetry component instance via mutex.

IMPORTANT: Invoking this method during the lifecycle of component initialization will be no-op instead.

For developer using this module:

read: lib/datadog/core/telemetry/logging.rb

Class Method Summary collapse

Class Method Details

.error(description) ⇒ Object



21
22
23
# File 'lib/datadog/core/telemetry/logger.rb', line 21

def error(description)
  instance&.error(description)
end

.report(exception, level: :error, description: nil) ⇒ Object



17
18
19
# File 'lib/datadog/core/telemetry/logger.rb', line 17

def report(exception, level: :error, description: nil)
  instance&.report(exception, level: level, description: description)
end