21.9.0 Breaks Sentry Integration
See original GitHub issueDescribe the bug With the new update and rewrite of some of the internals of Sentry, it has broken the Sentry Integration
Code snippet https://starb.in/n2Q1Y5.py
Tracelog
Error while handling error: sentry_error_handler_lookup() takes 2 positional arguments but 3 were given
Stack: Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/sanic/http.py", line 141, in http1
await self.protocol.request_handler(self.request)
File "sentry_handle_request", line 3, in sentry_handle_request
import logging
NameError: name 'Hub' is not defined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "handle_exception", line 28, in handle_exception
Awaitable,
File "/usr/local/lib/python3.8/site-packages/sanic/handlers.py", line 112, in response
handler = self.lookup(exception, route_name)
TypeError: sentry_error_handler_lookup() takes 2 positional arguments but 3 were given
Expected behaviour It not to break logging
Environment (please complete the following information):
- Version:
- Sanic: 21.9.0
- Sentry: 1.4.3 & 1.3.1
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (12 by maintainers)
Top Results From Across the Web
Everything is Broken and I Don't Know Why - Sentry
Sentry developer Matt Robenolt discusses these questions in this talk from JSConf. He's given versions of this presentation multiple times since.
Read more >sentry Changelog - PyUp.io
**Breaking Change**: This version introduces a change to the grouping of issues. The SDK now sets the `inApp` flag for frames originating from...
Read more >CHANGES · master · mirrors / getsentry / sentry · GitCode
Please see https://forum.sentry.io/t/breaking-frontend-changes-for-custom-plugins ... Some caveats: - The Slack integration requires Slack workspace tokens.
Read more >@sentry/react - npm
If the Tracing integration is not enabled, the Profiler component will not work. The Profiler tracks component mount, render duration and updates. Requires ......
Read more >Error Tracking - GitLab Docs
To use the GitLab backend, see integrated error tracking. To use Sentry as the backend, see Sentry error tracking. No matter what backend...
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
@Lagicrus @aericson @kamilogorek
Checkout the conversation in: https://github.com/getsentry/sentry-python/issues/1240 And, the updated PR: https://github.com/getsentry/sentry-python/pull/1212
The fix for this in sentry is merged.