Open nadasaiyed opened 2 years ago
Hey @nadasaiyed
Thanks for reporting this! I will try to reproduce this and will then get back to you!
@nadasaiyed Could you please try with a newer SDK version? We've recently released 1.33.0 which includes a number of improvements to our AWS Lambda integration.
I'm having this same issue, using sentry SDK version 1.40.4
(can't go higher since I need python 3.7 support).
Errors are only reported to sentry if I call sentry_sdk.init(... debug=True)
. If I remove debug, then no errors are sent.
Hey @hartleybrody !
Are you also using the logging integration with the same settings as above are doing a logging.exception()
? If now could you please post a minimal code example on how to reproduce this? Thanks!
How do you use Sentry?
Self-hosted/on-premise
Version
0.20.3
Steps to Reproduce
I am trying to forward raised exceptions from python code which runs in AWS Lambda but it only gets sent when debug is set to
True
. Are raised exceptions only supported whendebug = True
when initializing sentry?This raised exception does not get captured in Sentry. However, if i set
debug = True
for the same code, the exception gets forwarded to sentry. I don't want to setdebug = True
explicitly as it generated lots of loglines which isn't something i would want in prodExpected Result
Raised exception should get forwarded to sentry even if debug is not set to True.
Actual Result
Raised exception not captured in Sentry for Python version 3.8 in running in AWS Lambda