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

Improve error handling #32

Closed
wants to merge 2 commits into from
Closed

Conversation

bboreham
Copy link

@bboreham bboreham commented Nov 5, 2018

This addresses #30 and #31, for the buffered plugin.

I know basically nothing about Ruby, so I apologise if this code is bad.

If we allow the exception to propagate, fluentd will retry the event,
and get the same error again.
4xx errors are raised as Fluent::UnrecoverableError so that fluentd
will not retry the same data.
Other http errors are assumed to be temporary and raised as the original http exception.
Non-http errors, e.g. timeout, are allowed to propagate so fluentd will retry.

We don't need to log the error here because fluentd will log it.
@bboreham
Copy link
Author

Very old, closing.

@bboreham bboreham closed this Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant