Skip to content

Commit

Permalink
serialize correctly
Browse files Browse the repository at this point in the history
Signed-off-by: Luke Steensen <luke.steensen@gmail.com>
  • Loading branch information
lukesteensen committed Nov 3, 2023
1 parent 115b1ce commit 131822f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sinks/datadog/logs/sink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ where

let mut byte_size = telemetry().create_request_count_byte_size();
byte_size.add_event(&event, event.estimated_json_encoded_size_of());
let encoded = serde_json::value::to_raw_value(&event).expect("serializing to memory");
let encoded = serde_json::value::to_raw_value(&event.as_log()).expect("serializing to memory");

EncodedEvent {
original,
Expand Down

0 comments on commit 131822f

Please sign in to comment.