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: Normalized Event before caching. #3305

Merged
merged 1 commit into from Mar 11, 2021

Conversation

mac89
Copy link
Contributor

@mac89 mac89 commented Mar 3, 2021

This fixes an issue with the Offline integration when caching events, that have Spans, in an IndexedDB. Spans have functions which cause the storage to fail. Fixed it by using the normalize function on the event beforehand.

I tried creating tests, however when attempting to use fakeIndexedDB I could not figure out how to deal with its asynchronicity.

@mac89 mac89 requested a review from kamilogorek as a code owner March 3, 2021 11:02
@mac89 mac89 changed the title Normalized Event before caching. fix: Normalized Event before caching. Mar 3, 2021
@kamilogorek kamilogorek merged commit f824c80 into getsentry:master Mar 11, 2021
@kamilogorek
Copy link
Contributor

Thanks!

This was referenced Mar 11, 2021
This was referenced Mar 15, 2021
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