(New in version 0.3.5 )
You can use the AWS Lambda integration for the Python SDK like this:
import sentry_sdk from sentry_sdk.integrations.aws_lambda import AwsLambdaIntegration sentry_sdk.init( dsn="___PUBLIC_DSN___", integrations=[AwsLambdaIntegration()] ) def my_function(event, context): ...
With the AWS Lambda integration enabled, the Python SDK will:
- Automatically report all uncaught exceptions from your lambda functions.
Request data is attached to all events: HTTP method, URL, headers, form data, JSON payloads. Sentry excludes raw bodies and multipart file uploads. Sentry also excludes personally identifiable information (such as user ids, usernames, cookies, authorization headers, IP addresses) unless you set
Generally the behavior is quite similar to the generic serverless integration.