Exceptions in before_send are silenced
See original GitHub issueExceptions raised in before_send
leave no trace in the logs (and event is not being reported to sentry).
def before_send(event, hint):
raise ValueError
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
c# - Task and exception silence - Stack Overflow
Why exceptions thrown within a task are silent exception and you never know if a certain exception has been thrown
Read more >Identify real errors from errors generated by smoke tests
Hi, After deploying my app, I run a set of independent smoke tests to ensure the app has been deployed correctly.
Read more >Solidity Documentation - Read the Docs
Solidity is an object-oriented, high-level language for implementing smart contracts. Smart contracts are programs which govern the behaviour of accounts ...
Read more >@sentry/utils | Yarn - Package Manager
... fix(core): Make beforeSend handling defensive for different event types (#6507) ... feat(replay): Allow to opt-in to capture replay exceptions (#6482) ...
Read more >Release Notes — Airflow Documentation
Use log.exception where more economical than log.error (#27517) ... Silence warnings in tests from using SubDagOperator (#18275).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think the conclusion of this issue is:
before_send
is used to strip sensitive data, and there we will not send errors happening in there to Sentry, because this could send sensitive information to Sentry.If there are problems in
before_send
you need to run sentry withdebug=True
set to see errors on the console. This is how the state of things is right now.I am closing this issue.
If you want to provide a way to better handle errors in
before_send
please go ahead and create a new issue linking to this one. Thanks!Those exceptions are logged when you set
init(debug=True)
. Reporting to Sentry is an interesting idea though.