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.

Sentry integration and background tasks

See original GitHub issue

Describe 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:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
cnicodemecommented, Oct 18, 2022

Done 😃

0reactions
ahopkinscommented, Oct 18, 2022

ping me in that issue

Read more comments on GitHub >

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

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