Module: OpenTelemetry::Instrumentation::Logger::Patches::Logger
- Defined in:
- lib/opentelemetry/instrumentation/logger/patches/logger.rb
Overview
Instrumentation for methods from Ruby's Logger class
Constant Summary collapse
- IN_OTEL_EMIT_KEY =
:in_otel_emit
Instance Attribute Summary collapse
-
#skip_otel_emit ⇒ Object
writeonly
Sets the attribute skip_otel_emit.
Instance Method Summary collapse
Instance Attribute Details
#skip_otel_emit=(value) ⇒ Object (writeonly)
Sets the attribute skip_otel_emit
15 16 17 |
# File 'lib/opentelemetry/instrumentation/logger/patches/logger.rb', line 15 def skip_otel_emit=(value) @skip_otel_emit = value end |
Instance Method Details
#format_message(severity, datetime, progname, msg) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/opentelemetry/instrumentation/logger/patches/logger.rb', line 17 def (severity, datetime, progname, msg) = super emit_to_otel(severity, datetime, ) end |