clp
clp copied to clipboard
ffi: Add support for serializing msgpack map using key-value pair IR format.
Description
This PR implements the method to serialize msgpack maps using CLP key-value pair IR format. It includes the following component changes:
- The core serialization method, which contains the traversal of a
msgpackmap. - Updates on CLP IR protocol to add support for the key-value pair format.
- Serialization helpers that convert primitive values into encoded CLP IR byte sequences.
With this PR, the ffi should have all the functionality needed to serialize structured log events.
Validation performed
- Add new unit tests to ensure the serialization method can successfully serialize msgpack maps that we support. Notice that deserialization cannot be validated until we have the deserializer formally implemented.
- Using beta branch code to validate that the serialized data can be successfully deserialized and converted back to the original structured log event records.