Ways to parse timestamp without TimestampSecondsWithFrac in gelf codec #23070
Labels
domain: codecs
Anything related to Vector's codecs (encoding/decoding)
type: bug
A code related bug.
A note for the community
Problem
Using serde in
lib/codecs/src/decoding/format/gelf.rs
may cause panic.Configuration
Version
latest
Debug Output
Example Data
validate_err(&json!({
HOST: "example.org",
SHORT_MESSAGE: "foobar",
VERSION: "1.1",
TIMESTAMP: 13850538621111.3072
}));
Additional Context
We using serde_as with predifined function, but this func returns results and unwrap error from
checked_add
, there is way for returning Option and create parse error ingelf.rs
?References
No response
The text was updated successfully, but these errors were encountered: