Skip to content

Conversation

@bombela
Copy link

@bombela bombela commented May 31, 2018

Calling failed_send when should_try? returns false was resetting last_check, effectively disabling all logs until enough time passes between two call to send_event (36s here).

Fixes #841

Calling failed_send when should_try? returns false was resetting last_check, effectively disabling all logs until enough time passes between two call to send_event (36s here).

Fixes getsentry#841

unless @state.should_try?
failed_send(nil, event)
configuration.logger.error "Not sending event due to previous failure(s)."
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be cool if we could log here how long we have until the next attempt.

Copy link
Contributor

Choose a reason for hiding this comment

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

It's also important that the backtrace (essentially all the info on line 96) is still printed here.

For people that don't use i.e. Sidekiq to send their Sentry events (so, automated retry), they're going to lose this event forever.

Copy link
Author

Choose a reason for hiding this comment

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

Ok will look into it.

@bombela
Copy link
Author

bombela commented Sep 26, 2019

superseded by #886

@bombela bombela closed this Sep 26, 2019
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.

Backoff stuck until 36s of idle time

2 participants