Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sentry AwsLambdaIntegration #1

Open
ecanuto opened this issue Nov 26, 2020 · 0 comments
Open

Sentry AwsLambdaIntegration #1

ecanuto opened this issue Nov 26, 2020 · 0 comments
Assignees

Comments

@ecanuto
Copy link
Contributor

ecanuto commented Nov 26, 2020

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):
    # ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants