Module: OpenTelemetry::Instrumentation::Logger::Patches::ActiveSupportLogger
- Defined in:
- lib/opentelemetry/instrumentation/logger/patches/active_support_logger.rb
Overview
Patches for the ActiveSupport::Logger class included in Rails
Instance Method Summary collapse
-
#broadcast(logger) ⇒ Object
The ActiveSupport::Logger.broadcast method emits identical logs to multiple destinations.
Instance Method Details
#broadcast(logger) ⇒ Object
The ActiveSupport::Logger.broadcast method emits identical logs to multiple destinations. This instance variable will prevent the broadcasted destinations from generating OpenTelemetry log record objects. Available in Rails 7.0 and below
17 18 19 20 |
# File 'lib/opentelemetry/instrumentation/logger/patches/active_support_logger.rb', line 17 def broadcast(logger) logger.instance_variable_set(:@skip_otel_emit, true) super end |