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: set request in hook context before send request, in case of error #1016

Merged
merged 5 commits into from
Dec 16, 2024

Conversation

df-wg
Copy link
Contributor

@df-wg df-wg commented Dec 15, 2024

This will be added to wundergraph/cosmo#1445, to ensure that it's more resilient

Previously, we weren't setting the request (even when we really should have had access), because in error cases we were exiting before setting the request/response context. This ensures that we can pass the correct information to the access logs

Copy link
Collaborator

@StarpTech StarpTech left a comment

Choose a reason for hiding this comment

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

LGTM

@df-wg df-wg merged commit e41bdef into master Dec 16, 2024
9 checks passed
@df-wg df-wg deleted the dfreilich/add-request-to-ctx-early branch December 16, 2024 07:24
df-wg pushed a commit that referenced this pull request Dec 16, 2024
🤖 I have created a release *beep* *boop*
---


##
[2.0.0-rc.136](v2.0.0-rc.135...v2.0.0-rc.136)
(2024-12-16)


### Bug Fixes

* set request in hook context before send request, in case of error
([#1016](#1016))
([e41bdef](e41bdef))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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.

2 participants