Skip to content

fix(serverless): Capture custom tags in error events of GCP functions#7298

Merged
Lms24 merged 3 commits intodevelopfrom
lms/serverless-fix-gcp-no-tags-on-errors
Feb 28, 2023
Merged

fix(serverless): Capture custom tags in error events of GCP functions#7298
Lms24 merged 3 commits intodevelopfrom
lms/serverless-fix-gcp-no-tags-on-errors

Conversation

@Lms24
Copy link
Copy Markdown
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, AbhiPrasad, lforst and mydea 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