-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migration plan for sentry-python? #24
Comments
Hi @zsiciarz I attempted to do this a while ago and ran into the problems with Eventlet. If they are now fixed it'd be awesome to migrate to the new SDK. PR very welcome, thanks :) |
@mattbennett Could you be more specific on the errors with Eventlet? :) I'd very much like the new SDK and have time 👌 |
Hi @alexandervaneck. The problem was exactly the one @zsiciarz mentioned in his post, fixed in this commit: getsentry/sentry-python@87e5749 The SDK would throw an |
I'm interested in this too. Sentry just started emailing me about using an outdated SDK |
After some experimenting, I have good news and bad news. The good news is that the eventlet issue mentioned above has been resolved and it is at least possible to use the new SDK manually via The bad news is I can't get the new SDK to work as a DependencyProvider. With There also appears to be another way of integrating sentry-sdk with frameworks such as Django, aiohttp etc. They provide I can put up a gist with my unsuccesful attempts, if anyone is willing to help move nameko-sentry forward. |
I recall seeing this issue along with the "queue has no attribute" error. I think the problem is that @zsiciarz please post your gist, and we can use that as a starting point. |
@mattbennett here's my attempt as of now: https://gist.github.com/zsiciarz/84a358e9bfabc7f4857590e407d77b3b I've stripped the dependency to bare minimum and tried to raise and capture exceptions in worker lifecycle methods, just to see if anything works. I've also attempted to store cloned |
I know this is old, and closed. Is there any forward progress on this? I'd love to start using the Sentry "Profiling" to replace ScoutAPM |
After looking at @zsiciarz code I went tinkering locally since we also wanted to have Sentry for our nameko workers. https://gist.github.com/puittenbroek/f9de6ddc1fbc1ac838fd46b31c827371 |
Anyone noticed that if you call Example I am not sure whats happening here. I tried @puittenbroek code and it seems to work fine for catching exceptions that bubble up to the worker_result. But then after adapting it to my own needs, and capturing a bunch more information I figured that any calls done without the reference to that worker_hub are never passed to Sentry. Anyone understands whats going on here? Could this be a timing issue perhaps? Any monkeypatching trickery? This code is based off @puittenbroek example and includes most additional features written by @mattbennett (that I could get working) and seems to be working fine for me. However, because I can't init Sentry inside the setup function, I omitted the calls to nameko.config and used env vars directly. https://gist.github.com/joaomcarlos/e6491ec3582d57e70dd21ce807d67cf3 I also experimented with transactions, but the results were not very satisfactory. I have to explore that a little bit more. Ideally I'd like to be able to trace calls to the source of the publisher, in case of pub/sub (maybe with a manually supplied trace id?), and to the RPC caller in case of RPC. |
Nice work @joaomcarlos ! I ran into the problem you mentioned as well and copied your gist and adjusted a little to suit our needs :) Don't have any further clues at the moment, sorry! |
@puittenbroek Do let me know if you find any more info/solutions. I will do the same. We are currently busy with other things, I cant dedicate time to this. But hopefully in the future we can come back to this and get more features working. @MattBennet I am sure my gist, while not perfect, might be good enough for a starting point towards updating nameko-sentry |
Hey folks,
are there any plans to migrate from raven to the new Sentry SDK, aka sentry-python? The API changed somewhat, but there's a migration guide.
Last time I've checked, the new SDK had some issues with eventlet, however it looks like they fixed it in getsentry/sentry-python@87e5749.
If porting nameko-sentry to sentry-python is desirable, I might take a stab at a PR.
The text was updated successfully, but these errors were encountered: