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

Rescue Firehose errors #24854

Merged
merged 3 commits into from Oct 30, 2018
Merged

Rescue Firehose errors #24854

merged 3 commits into from Oct 30, 2018

Conversation

sureshc
Copy link
Contributor

@sureshc sureshc commented Sep 18, 2018

Prevent errors that occur when sending analytics data to Redshift via Firehose from causing the caller to fail.

@@ -61,6 +61,10 @@ def put_record(data)
# backing off and retrying.
# See http://docs.aws.amazon.com/sdkforruby/api/Aws/Firehose/Client.html#put_record-instance_method.
Honeybadger.notify(e)
rescue StandardError => error
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two suggestions:

  1. This clause is strictly a superset of, and has identical behavior to, the one above that rescues ServiceError. I think we could just replace the above clause with this one.
  2. You can just write rescue => error which is equivalent to rescue StandardError => error. See Thoughbot.

@sureshc sureshc requested review from wjordan, maddiedierker and mehalshah and removed request for ewjordan October 27, 2018 05:19
@sureshc sureshc merged commit 36dc201 into staging Oct 30, 2018
@sureshc sureshc deleted the rescue-firehose-analytics-errors branch October 30, 2018 00:29
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.

None yet

3 participants