Sentry integration and background tasks
See original GitHub issueDescribe the bug
Looking at the Sentry integration, a hub is created on request (‘http.lifecycle.request’ => _hub_enter
) and removed at exit (‘http.lifecycle.response’ => _hub_exit
).
If I understand this correctly, it means that if an exception occurs outside of the request, no Hub will be define and the exception won’t be caught by Sentry.
This can happen when running a long background_task from a request handler that has already returned a response.
Environment (please complete the following information):
- Sanic Version: 22.9.0
- Sentry SDK : 1.9.9
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Asynchronous Workers - Sentry Developer Documentation
Sentry comes with a built-in queue to process tasks in a more asynchronous fashion. ... and the background workers handle actually saving that...
Read more >Public Integrations | Sentry Documentation
Background must be transparent (unless the logo takes up the entire space). If the integration has a UI component, you must also upload...
Read more >[FastAPI] Background Tasks #1473 - getsentry/sentry-python
Problem Statement Similar to other frameworks FastAPI can run background task, which should be included in contextual data Solution ...
Read more >Sentry - Application Monitoring and Error Tracking - YouTube
Application Monitoring and Error Tracking: How to Implement and Configure Sentry · Comments • 11.
Read more >Sentry Integration with ClickUp™
When you go to the task you selected, you will see a message from Sentry with the issue attached. Install Sentry. Install Sentry....
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
Done 😃
ping me in that issue