-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ffi: Add support for serializing msgpack map into KV-pair IR format. #467
ffi: Add support for serializing msgpack map into KV-pair IR format. #467
Conversation
(std::is_same_v<encoded_variable_t, clp::ir::eight_byte_encoded_variable_t> | ||
|| std::is_same_v<encoded_variable_t, clp::ir::four_byte_encoded_variable_t>) | ||
); | ||
std::string logtype; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: could we re-use the same buffer for clp logtype instead of recreating it each time this function is called?
Co-authored-by: Devin Gibson <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few more suggestions to polish the code. Do you plan to add support for the unsigned long value as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the PR title, how about:
ffi: Add support for serializing msgpack map into KV-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:msgpack
map.With this PR, the ffi should have all the functionality needed to serialize structured log events.
Validation performed