-
Notifications
You must be signed in to change notification settings - Fork 589
Description
How do you use Sentry?
Sentry Saas (sentry.io)
Version
1.20.0
Steps to Reproduce
I'm using AsyncMy (https://github.com/long2ice/asyncmy) as my DB connector for asynchronous connections via SQLAlchemy.
Randomly, the library was failing and I had to restart the code in order for it to work.
It took me quite some time to figure out the problem: It is Sentry that wraps a module as an AnnotatedValue, making that library unable to function properly after that.
I've opened a ticket at that library, thinking the issue was related to them : long2ice/asyncmy#60
But printing the faulty code, it initially shows this:
<module 'asyncmy.auth' from '/var/www/getfernand.com/env/lib/python3.9/site-packages/asyncmy/auth.py'>
(the auth file)
And after an error caught by Sentry, the module is then replaced by:
<sentry_sdk.utils.AnnotatedValue object at 0x7fb3a32abc40>
And this is when the problem starts!
Is there a way to either tell Stripe to not wrap that object, or to not process it, or anything that can avoid these issues ?
Thank you !
Expected Result
Sentry shouldn't wrap the module as an AnnotatedValue, or otherwise pass the attributes to the original object.
Actual Result
the "auth" module is wrapped as an sentry_sdk.utils.AnnotatedValue, causing the library to fail to find the original functions (here, scramble_native_password)