-
Notifications
You must be signed in to change notification settings - Fork 101
Datadog - missing message field for errors #153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@gorkunov does it also work for you if you leave the top-level message empty? Is there any processing rules on your DataDog that might break it? Having |
We didn't try empty message. But previously we used our own lib for logs with this formatter that was specially polished for exceptions: https://github.com/prosapient/statham_logger/blob/main/lib/datadog_formatter.ex. |
You can find more details about fields here: https://docs.datadoghq.com/error_tracking/backend/logs?tab=serilog |
Potentially problem with that formatting in datadog is missing field |
We are also having this exact issue and have to rollback to a previous version. |
looks good now! |
We use logger_json for datadog integration.
When exception is logged using logger_json middlewares - it looks odd in datadog. Instead of readable message (e.g. exception message) - it shows raw json structure with the full payload. It seems that happens because for exceptions
message
key in payload not in the right place.We tried a simple fix on a fork and it's working without issues.
prosapient@1307b95
The text was updated successfully, but these errors were encountered: