Last active
July 22, 2021 03:32
-
-
Save thanakijwanavit/094a0de224b505f3fa707e8375042c93 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sentry_sdk.integrations.aws_lambda import AwsLambdaIntegration | |
from sentry_sdk import add_breadcrumb, capture_exception | |
import sentry_sdk | |
sentry_sdk.init( | |
dsn="https://xxxxx.ingest.sentry.io/xxxxx", | |
integrations=[AwsLambdaIntegration()] | |
) | |
def sentryLog(message:str, data:(list,dict), category='main'): | |
add_breadcrumb( | |
category=category, | |
data=data, | |
level='info', | |
message=message | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment