I fixed some Dialyzer warnings in #75, but there are two left:
:0:unknown_type
Unknown type: Ecto.LogEntry.t/0.
Ecto.LogEntry has been removed in Ecto 3.2.0. If you want to keep this for backwards compatibility, we can tell Dialyzer to ignore this warning.
________________________________________________________________________________
lib/logger_json/formatters/datadog_logger.ex:43:pattern_match
The pattern can never match the type.
Pattern:
%{:reason => _reason}
Type:
nil | %Jason.Fragment{:encode => ({_, _} -> [any(), ...])}
I'm not using the datalog logger, but it looks like Jason.Helpers.json_map/1 (used in LoggerJSON.FormatterUtils.format_process_crash/1) returns a Jason.Fragment struct, on which you'd have to call the encode function in order to get the final map. The datadog logger matches on the encoded map though, and not on Jason.Fragment. So this looks like a bug to me.
I fixed some Dialyzer warnings in #75, but there are two left:
Ecto.LogEntry
has been removed in Ecto 3.2.0. If you want to keep this for backwards compatibility, we can tell Dialyzer to ignore this warning.I'm not using the datalog logger, but it looks like
Jason.Helpers.json_map/1
(used inLoggerJSON.FormatterUtils.format_process_crash/1
) returns aJason.Fragment
struct, on which you'd have to call the encode function in order to get the final map. The datadog logger matches on the encoded map though, and not on Jason.Fragment. So this looks like a bug to me.