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

[exporter/syslog] send messages in batches #27661

Conversation

andrzej-stencel
Copy link
Member

This pull request builds upon #27464 that adds integration tests and fixes some Syslog message formatting bugs.

Description:

This changes the behavior of the Syslog exporter to each batch of Syslog messages in a single request (separated by newlines), instead of sending each message in a separate request and closing the connection after each message.

This also significantly refactors (and hopefully simplifies) the exporter's code, extracting the code that formats the Syslog messages from the sender type into separate formatter types. Hopefully this will make the development of this component easier.

Link to tracking Issue:

Testing:

The unit tests have been updated to reflect the refactored codebase. The integration tests introduced in #27464 are unchanged, as the format of the output messages hasn't changed.

Documentation:

No documentation updates.

@andrzej-stencel andrzej-stencel force-pushed the syslog-exporter-single-request branch 2 times, most recently from 4f04944 to ac5eca4 Compare October 13, 2023 08:57
Dominik Rosiek and others added 4 commits October 17, 2023 13:17
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
This changes the behavior of the Syslog exporter to send all logs
in a single request instead of sending each syslog message in a separate request
and closing the connection after each message.
This also significantly refactors (and hopefully simplifies) the exporter's code,
extracting the code that formats the Syslog messages
from the `sender` type into separate `formatter` types.
Hopefully this will make the development of this component easier.
@andrzej-stencel andrzej-stencel force-pushed the syslog-exporter-single-request branch from ac5eca4 to 996afff Compare October 17, 2023 11:19
@andrzej-stencel
Copy link
Member Author

Closing this in favor of #27799

@andrzej-stencel andrzej-stencel deleted the syslog-exporter-single-request branch November 5, 2024 10:54
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