-
Notifications
You must be signed in to change notification settings - Fork 1.7k
opentelemetry: new abstraction to handle OTLP data #10549
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Eduardo Silva <[email protected]>
Signed-off-by: Eduardo Silva <[email protected]>
…d up before releasing the underlying buffer Signed-off-by: Eduardo Silva <[email protected]>
Signed-off-by: Eduardo Silva <[email protected]>
Signed-off-by: Eduardo Silva <[email protected]>
Signed-off-by: Eduardo Silva <[email protected]>
Signed-off-by: Eduardo Silva <[email protected]>
47cc35c
to
b604fbe
Compare
CI issue with macos, all looks good. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The current codebase handles OTLP JSON, OTLP Protobuf, and Fluent Bit log chunk encoding directly within plugins like in_opentelemetry and out_opentelemetry, making the logic difficult to test and reuse in isolation.
This PR introduces the foundation for a new abstraction layer to centralize OTLP encoding and decoding tailored to Fluent Bit’s needs. As part of this change, in_opentelemetry now delegates OTLP Log JSON parsing to this new interface, and the legacy inline parsing logic has been deprecated.
In addition to improving testability and maintainability, the new interface introduces explicit encoding/decoding error types. These errors are now propagated to plugin consumers, enabling more informative and actionable error messages for end users when OTLP data fails to decode correctly.
as part of the changes, we added some minor fixes for protection in the pack and log_event_encoder_dynamic_field interfaces.
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.