Skip to content

Split EventListener.retryDecision into retryDecision and followUpDecision #8796

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

swankjesse
Copy link
Collaborator

retryDecision has an exception, and is related to connectivity failures.

followUpDecision has an intermediate response, and is related to redirects and auth challenges.

This drops the reason strings, which have 'logging brain' and I want to push our users towards 'metrics brain'.

…sion

retryDecision has an exception, and is related to
connectivity failures.

followUpDecision has an intermediate response, and is
related to redirects and auth challenges.

This drops the reason strings, which have 'logging brain'
and I want to push our users towards 'metrics brain'.
@swankjesse swankjesse requested a review from yschimke May 23, 2025 15:59
* @param networkResponse the intermediate response that may require a follow-up request.
* @param nextRequest the follow-up request that will be made. Null if no follow-up will be made.
*/
open fun followUpDecision(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Yep, nice. When documented properly, those are clearly two separate things.

Copy link
Collaborator

@yschimke yschimke left a comment

Choose a reason for hiding this comment

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

It feels a shame to lose the why. But reason: String is not a structured why, so agree with this on principle.

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