Description
The <<
method in Ruby's Logger class can be used to write messages to a log device without passing through the format_message
method. Currently, our instrumentation uses format_message
to report on calls to add
, which invoke the commonly used severity methods (ex. #debug
, #warn
).
We haven't received complaints about this not being instrumented. It's difficult to gauge how frequently it is used by our customers.
This method doesn't provide access to many of the attributes we use in our log events now, such as severity and timestamp. It only provides a message.
If we add instrumentation for <<
, we should update the ActiveSupport::BroadcastLogger
instrumentation to also skip instrumentation for all but the first logger on calls to <<
.
Priority: Low