Skip to content

Commit

Permalink
feat: add in entire event body to dd as metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziinc committed Aug 6, 2024
1 parent d227cc4 commit d091cef
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/logflare/backends/adaptor/datadog_adaptor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,10 @@ defmodule Logflare.Backends.Adaptor.DatadogAdaptor do
%Logflare.LogEvent{
le
| body: %{
message: formatted_ts <> " " <> Jason.encode!(le.body),
ddsource: "Supabase",
service: le.source.service_name || le.source.name
"message" => formatted_ts <> " " <> (le.body["message"] || le.body["event_message"]),
"ddsource" => "Supabase",
"service" => le.source.service_name || le.source.name,
"data" => le.body
}
}
end
Expand Down

0 comments on commit d091cef

Please sign in to comment.