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

Move opaque id to the end of the middleware chain #291

Merged
merged 4 commits into from
Jan 9, 2024

Conversation

richa-d
Copy link
Contributor

@richa-d richa-d commented Dec 19, 2023

This PR moves the call to the opaque ID middleware to the end of the Faraday middleware chain. Currently the opaque ID middleware is being triggered earlier in the middleware stack and is wrapping the invocation of the other middleware in the chain after it.
This change will ensure that we can use middleware like circuit breakers without causing issues for the opaque ID middleware. So any time we short circuit the remote request, the opaque ID middleware will not be called.

@richa-d richa-d self-assigned this Dec 19, 2023
@richa-d richa-d marked this pull request as ready for review December 20, 2023 17:25
@richa-d richa-d requested a review from misalcedo December 20, 2023 17:34
kag728
kag728 previously approved these changes Dec 20, 2023
Copy link
Contributor

@kag728 kag728 left a comment

Choose a reason for hiding this comment

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

This is great! LGTM!

@richa-d richa-d requested a review from misalcedo January 9, 2024 15:41
Copy link
Contributor

@misalcedo misalcedo left a comment

Choose a reason for hiding this comment

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

LGTM

@richa-d richa-d merged commit 99ee659 into main Jan 9, 2024
3 checks passed
@richa-d richa-d deleted the richa-d/moveOpaqueIDMiddleware branch January 9, 2024 16:57
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