AWS Lambda uses ThreadedHTTPTransport instead of HTTPTransport
See original GitHub issueIn AWS Lambda environment, HTTPTransport
should be used instead of the default ThreadedHTTPTransport
(this was added in #828). Which HTTP transport to use is determined based on the presence of the LAMBDA_TASK_ROOT
environment variable. But in my case ThreadedHTTPTransport
is used, even though LAMBDA_TASK_ROOT
is there.
I discovered this when noticing that some of the errors were not being reported to Sentry.
Why this happens?
It seems that when instantiating the Client
from DSN, the default transport is used, and the one determined by discover_default_transport is ignored.
How to fix this?
The discover_default_transport
should be taken into account when using RemoteConfig.from_string. If this is not acceptable, the docs should mention that transport
needs to be manually set to raven.transport.http.HTTPTransport
when using Sentry on AWS Lambda.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top GitHub Comments
Im porting https://github.com/Netflix-Skunkworks/raven-python-lambda to raven, but in the meanwhile you can Check out their implementation. On Wed, 23 Aug 2017 at 12:08, Jure Cerjak notifications@github.com wrote:
SentryHandler does not send errors to sentry when log level is set to
ERROR
on Lambda. I’m usingdictConfig
to configure logging with this handler, is there something I need to do to get this working?