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
The lambda_unhandled_exception_warning_message (LAMBDA_WARNING: Unhandled exception...) is ~ 633 chars and adds little value to our debugging. I understand the desire to warn people the runtime may have changed underfoot, and that's why their code is raising exceptions, but I'd like a way to disable it.
Another reason one might want to disable this message is that CloudWatch merges this warning with the actual error and handles it as a single log event. When using ALC with JSON log format, this makes it hard to parse the log event as JSON (in my case it's streamed to Grafana Loki).
like @tlinhart we are facing this issue with our Cloudwatch logs which are forwarded to DataDog for aggregation. Not only is the structured logging lost but the ERROR log is reported as an INFO log message making monitoring of "ERROR" logs more difficult
Downgrading to 2.0.8 with no other changes yields the following
Reacted by Steffen Zeile, Mohamad Chehab and Mohamed El Mouctar HAIDARA
Activity
tlinhart commentedon Oct 1, 2024
Another reason one might want to disable this message is that CloudWatch merges this warning with the actual error and handles it as a single log event. When using ALC with JSON log format, this makes it hard to parse the log event as JSON (in my case it's streamed to Grafana Loki).
abillingsley commentedon Oct 10, 2024
like @tlinhart we are facing this issue with our Cloudwatch logs which are forwarded to DataDog for aggregation. Not only is the structured logging lost but the ERROR log is reported as an INFO log message making monitoring of "ERROR" logs more difficult
Downgrading to 2.0.8 with no other changes yields the following