Skip to content

Conversation

@bretthoerner
Copy link

This adjusts some of the changes from #562 to bring the Java SDK inline with what new Sentry SDKs are doing.

@mitsuhiko
Copy link
Contributor

This looks good as such but we should also honour the retry-after header.

@bretthoerner
Copy link
Author

We already do, it's ugly and convoluted because of legacy code and Java 7, haha:

String retryAfterHeader = connection.getHeaderField("Retry-After");

So all this really does is prevent the client from storing events and retrying them later. We already backoff when told to.

@bretthoerner bretthoerner merged commit b5286b0 into master Sep 19, 2018
@bretthoerner bretthoerner deleted the drop-on-429 branch September 19, 2018 18:39
@mitsuhiko
Copy link
Contributor

@bretthoerner fwiw (not that we do this right now) but retry-after can also be an absolute time

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.

3 participants