8000 out_splunk: added otlp metadata support by leonardo-albertovich · Pull Request #10035 · fluent/fluent-bit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

out_splunk: added otlp metadata support #10035

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 5 commits into from
Mar 5, 2025

Conversation

leonardo-albertovich
Copy link
Collaborator
@leonardo-albertovich leonardo-albertovich commented Mar 3, 2025

This PR adds OTLP metadata support to the splunk output plugin and it improves the way in which group metadata is exposed to client code to prevent unintended meta records from being pushed to endpoints that do not expect them.

Technical notes :

In this PR the log event decoder component has been modified to prevent unsuspecting plugins from receiving meta records that hold group attributes. In order to achieve this the default value of read_groups has been changed to FLB_FALSE and its meaning reinterpreted to mean that the client code wants raw access to group metadata records rather than having the decoder transparently providing access to the information while not delivering them directly through flb_log_event_decoder_next.

What this means is that while the client code iterates the record set using flb_log_event_decoder_next two new struct flb_log_event fields named group_metadata and group_attributes will be set to point to the appropri 8000 ate msgpack_object instances if the record is part of a record group or NULL otherwise.

Signed-off-by: Leonardo Alminana <leonardo.alminana@chronosphere.io>
Signed-off-by: Leonardo Alminana <leonardo.alminana@chronosphere.io>
Signed-off-by: Leonardo Alminana <leonardo.alminana@chronosphere.io>
Signed-off-by: Leonardo Alminana <leonardo.alminana@chronosphere.io>
Signed-off-by: Leonardo Alminana <leonardo.alminana@chronosphere.io>
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.

2 participants
0