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(serverless): Capture custom tags in error events of GCP functions #7298

Merged
merged 3 commits into from Feb 28, 2023

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Feb 28, 2023

As reported in #7222, our GCP function wrapHttpFunction handler didn't capture custom tags in error events. We suspect that this was caused by the SDK listening to errors on the wrong domain. This PR changes the way we listen to errors by directly try/catching the function instead of listening to the domain's error callback.

h/t @lforst for debugging this

fixes #7222

Co-authored-by: Luca Forstner <luca.forstner@sentry.io>
@Lms24 Lms24 requested review from a team, mydea, AbhiPrasad and lforst and removed request for a team February 28, 2023 13:40
@Lms24 Lms24 merged commit 7029da4 into develop Feb 28, 2023
@Lms24 Lms24 deleted the lms/serverless-fix-gcp-no-tags-on-errors branch February 28, 2023 14:25
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.

Custom Tag not appearing on Error Event from Serverless Function in GCP
2 participants