Skip to content

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

Merged
edsiper merged 3 commits intomasterfrom
log-object
Feb 26, 2024
Merged

mp: new API to convert between msgpack and CFL object#8518
edsiper merged 3 commits intomasterfrom
log-object

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 <eduardo@calyptia.com>
Signed-off-by: Eduardo Silva <eduardo@calyptia.com>
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 <eduardo@calyptia.com>
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