You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Falcon integration does not respect custom exception handlers #1362
I have a question,
In the docs, Sentry detect if Falcon is in dependencies, I've been looking for the code doing that but haven't found it yet.
At first, I guess the dependencies detection code is inside the init method
But after reading class Client and Hub, these just takes integration options parameters, and doesn't do dependencies scan.
Can you show me where that part is ?
(An integration raises a special DidNotEnable exception if it fails to import the instrumented library and that tells this code that the library is not installed and the integration for it shouldn't be enabled.)
But please note that someone's already working on this issue.
We have fixed this issue for Falcon versions 3.0 and above only. In case anyone encounters this same bug in an older Falcon version, please feel free to submit a new issue, referencing this one.
Activity
sl0thentr0py commentedon Mar 7, 2022
thx for reporting @alexmic, if you want it fixed sooner, PRs always welcome!
khuongduy354 commentedon Oct 25, 2023
I have a question,



In the docs, Sentry detect if Falcon is in dependencies, I've been looking for the code doing that but haven't found it yet.
At first, I guess the dependencies detection code is inside the init method
But after reading class Client and Hub, these just takes integration options parameters, and doesn't do dependencies scan.
Can you show me where that part is ?
sentrivana commentedon Oct 25, 2023
Hey @khuongduy354, you're looking for the
setup_integrationsfunction which is called at client setup here:sentry-python/sentry_sdk/client.py
Line 263 in 3176dde
sentry-python/sentry_sdk/integrations/__init__.py
Lines 38 to 45 in 3176dde
sentry-python/sentry_sdk/integrations/__init__.py
Line 140 in 3176dde
DidNotEnableexception if it fails to import the instrumented library and that tells this code that the library is not installed and the integration for it shouldn't be enabled.)But please note that someone's already working on this issue.
fix(integrations): Falcon integration checks response status before r…
szokeasaurusrex commentedon Oct 25, 2023
We have fixed this issue for Falcon versions 3.0 and above only. In case anyone encounters this same bug in an older Falcon version, please feel free to submit a new issue, referencing this one.