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
patch-console.ts adds dd key and value to the log if it is json formatted (and possibly only if log args are length 1 too?).
dd: {
trace_id: traceId
span_id: parentId
}
Actual Behavior
Converts json object to a string representation and prefixes with [dd.trace_id=${traceId} dd.span_id=${parentId}], resulting in loss of datadog json log functionality.
Steps to Reproduce the Problem
Send a json formatted log
View the log in datadog and see that it has turned into a string representation in the message and unable to use datadog json parsing features
Workaround
Turn off log injection with environmental variable: DD_LOGS_INJECTION: false
Expected Behavior
patch-console.ts adds
dd
key and value to the log if it is json formatted (and possibly only if log args are length 1 too?).Actual Behavior
Converts json object to a string representation and prefixes with
[dd.trace_id=${traceId} dd.span_id=${parentId}]
, resulting in loss of datadog json log functionality.Steps to Reproduce the Problem
Workaround
DD_LOGS_INJECTION: false
dd-trace
from lambda layerThe text was updated successfully, but these errors were encountered: