You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This method of log tag injection appears to be unnecessary when using rails_semantic_logger, as Datadog injects trace tags via other means, at the individual log level — despite the warning, logs produced by rails_semantic_logger have the correct dd trace tags.
After upgrading to 1.13.0, I'm seeing a (false) warning in an app using
rails_semantic_logger
and its somewhat unusual hash-basedlog_tags
:Coming from this code, which understandably fails when
log_tags
is a hash:dd-trace-rb/lib/datadog/tracing/contrib/rails/log_injection.rb
Line 13 in b3f3a0a
This method of log tag injection appears to be unnecessary when using
rails_semantic_logger
, as Datadog injects trace tags via other means, at the individual log level — despite the warning, logs produced byrails_semantic_logger
have the correctdd
trace tags.Current behaviour
The above warning.
Expected behaviour
No warning.
Steps to reproduce
I've created a sample app to demonstrate the issue. The relevant bits are lucthev/ddtrace-log-warning-repro@5cf860b...main.
Simply run
rails s
and a warning should be printed.The text was updated successfully, but these errors were encountered: