noverde/serpens

Sentry AwsLambdaIntegration

Opened this issue · 0 comments

Maybe we can use this AwsLambdaIntegration plugin:

https://sentry.io/for/python-aws-lambda/

import sentry_sdk
from sentry_sdk.integrations.aws_lambda import AwsLambdaIntegration

sentry_sdk.init(
    dsn="__PUBLIC_DSN__",
    integrations=[AwsLambdaIntegration()],
    traces_sample_rate=1.0, # adjust the sample rate in production as needed
)

def my_function(event, context):
    # ...