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

fix(remix): Don't inject trace/baggage to redirect and catch responses #8467

Merged
merged 1 commit into from Jul 6, 2023

Conversation

onurtemizkan
Copy link
Collaborator

Related: epicweb-dev/epic-stack#256

Skips trace and baggage injections to redirect and catch responses.

For redirect responses: It was breaking the behaviour of redirection. Internal redirection targets should already have their trace and baggage, so I assume this should not break the connection between services at the end.

catch responses do not have bodies, and they are thrown by Remix, so skipping injection as well not to potentially break the internal catch behaviour of Remix.

@AbhiPrasad AbhiPrasad merged commit 5854132 into develop Jul 6, 2023
36 checks passed
@AbhiPrasad AbhiPrasad deleted the onur/fix-remix-redirect-responses branch July 6, 2023 14:46
AbhiPrasad pushed a commit that referenced this pull request Jul 6, 2023
…onses (#8467)

Skips `trace` and `baggage` injections to `redirect` and `catch`
responses.

For `redirect` responses: It was breaking the behaviour of redirection.
Internal redirection targets should already have their `trace` and
`baggage`, so I assume this should not break the connection between
services at the end.

`catch` responses do not have bodies, and they are thrown by Remix, so
skipping injection as well not to potentially break the internal catch
behaviour of Remix.
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

2 participants