Length-delimited framing actually emitting big-endian length, not little-endian #19699
Labels
domain: codecs
Anything related to Vector's codecs (encoding/decoding)
type: bug
A code related bug.
A note for the community
Problem
The docs for framing in sinks say:
Where in fact this framing emits Big Endian-encoded integer.
Documentation needs to be fixed.
See here, the
tokio_util::codec::LengthDelimitedCodec
codec is used:vector/lib/codecs/src/encoding/framing/length_delimited.rs
Line 25 in 7cf2f00
And this codec emits big-endian: https://docs.rs/tokio-util/latest/tokio_util/codec/length_delimited/#getting-started
I've confirmed it when I was writing a server to receive Vector events.
Configuration
Version
0.35
Debug Output
No response
Example Data
No response
Additional Context
No response
References
No response
The text was updated successfully, but these errors were encountered: