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: check for dropped event #192

Merged
merged 2 commits into from
Apr 16, 2020

Conversation

gawen
Copy link
Contributor

@gawen gawen commented Apr 6, 2020

scope.ApplyToEvent may return nil, but is not checked in prepareEvent.

@rhcarvalho
Copy link
Contributor

Thanks @gawen, good catch! ❤️

Would you like to add a test case?

@gawen
Copy link
Contributor Author

gawen commented Apr 7, 2020

@rhcarvalho sure, although I don't see a relevant test case.

@rhcarvalho
Copy link
Contributor

The case is when an event processor in the scope drops an event.

The default scope starts without any event processor, that's probably why the bug was hiding for a long time.

Gawen Arab and others added 2 commits April 15, 2020 15:48
@rhcarvalho rhcarvalho force-pushed the fix-check-nil-applytoevent branch from 4c1ea5d to a568e41 Compare April 16, 2020 09:02
@rhcarvalho
Copy link
Contributor

I've rebased against current master and added a simple change to a test that minimally covers the change (the test breaks without the change from @gawen).

Copy link
Contributor

@rhcarvalho rhcarvalho left a comment

Choose a reason for hiding this comment

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

@gawen thanks for your contribution! (not only with this one!!!)

@rhcarvalho rhcarvalho merged commit 930e04d into getsentry:master Apr 16, 2020
@gawen
Copy link
Contributor Author

gawen commented Apr 17, 2020

@rhcarvalho thanks for merging!

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