Skip to content
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

mp: new API to convert between msgpack and CFL object #8518

Merged
merged 3 commits into from
Feb 26, 2024
Merged

Conversation

edsiper
Copy link
Member

@edsiper edsiper commented Feb 26, 2024

This PR accomplishes 2 primary things:

  • Upgrade CFL to version v0.4.0 which implements the new CFL Object interface.
  • Extend MP API to convert between msgpack ⇆ CFL Object. Details below:

Looking forward to improve how do we manipulate msgpack buffers, we aim to operate on top of the new CFL object structure and reduce the number of serializations required, plus decrease the complexity of the logic in certain plugins that requiresseveral modification operations.

  • Convert from MessagePack Object (unpacked) to CFL object
  • Convert from CFL object to MessagePack buffer (serialized)

In the next patches we will extend Log processors by using this new interface.


Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.

Signed-off-by: Eduardo Silva <[email protected]>
Looking forward to improve how do we manipulate msgpack buffers,
we aim to operate on top of the new CFL object structure and
reduce the number of serializations required, plus decrease
the complexity of the logic in certain plugins that requires
several modifcation operations.

This patch implements 2 new API calls and test case for:

- Convert from MessagePack Object (unpacked) to CFL object
- Convert from CFL object to MessagePack buffer (serialized)

In the next patches we will extend Log processors by using this
new interface.

Signed-off-by: Eduardo Silva <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant