-
-
Notifications
You must be signed in to change notification settings - Fork 452
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
Do not return error id if we know we did not send the error #667
Conversation
3ea310e
to
efeda8a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this change makes sense 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change makes sense. Do we have the same issue under 2.0?
It does not make sense to make a PR now with the upcoming changes of the unified API as most of the code will need to be refactored or moved around |
Doesn't matter, it's there to keep track of it. Merged or not we are going to need to take a look at it again (or not). Better to have it than not. |
It would make sense only if a test is added, that wouldn't need to be changed much. |
BTW @stayallive already did it in #671 |
As far as I saw in the unified API a |
If we know we did not sent the error to a Sentry server we should not return the error id which could like like it would have been sent.
This makes it easier to debug and easier to show an error id (or not in this case) to users or error pages. If no error was sent we should not have an ID set.
This ofcourse cannot be done when errors are stored for bulk sending.
For example: In Laravel we check if the event id is not null before showing it to the user on the 500 screen, better not show it if we are not sending it to not get error id's from users that are never sent.