Skip to content

Commit

Permalink
chore(app): add awslambda sentry integration
Browse files Browse the repository at this point in the history
  • Loading branch information
photonbit committed Jan 13, 2022
1 parent e649b5b commit d2af921
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion giges/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from connexion.resolver import RestyResolver
from flask import Flask
from flask_migrate import Migrate
from sentry_sdk.integrations.aws_lambda import AwsLambdaIntegration
from sentry_sdk.integrations.flask import FlaskIntegration

SETTINGS_VARIABLE_NAME = "GIGES_SETTINGS"
Expand Down Expand Up @@ -50,7 +51,7 @@ def configure_sentry(app: Flask) -> None:
sentry_sdk.init(
dsn=app.config["SENTRY_URI"],
environment=app.config["ENVIRONMENT"],
integrations=[FlaskIntegration()],
integrations=[AwsLambdaIntegration(), FlaskIntegration()],
)


Expand Down

0 comments on commit d2af921

Please sign in to comment.