question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exceptions in before_send are silenced

See original GitHub issue

Exceptions 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:closed
  • Created 4 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
antonpirkercommented, Feb 28, 2022

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 with debug=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!

1reaction
untitakercommented, Jun 25, 2019

Those exceptions are logged when you set init(debug=True). Reporting to Sentry is an interesting idea though.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found