Skip to content

Commit

Permalink
init sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed Dec 17, 2023
1 parent 3addc3c commit fd70c58
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions wort/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@ def create_app(settings_override=None):
:param settings_override: Override settings
:return: Flask app
"""
### Init sentry
import sentry_sdk
from sentry_sdk.integrations.redis import RedisIntegration
sentry_sdk.init(
enable_tracing=True,
traces_sample_rate=1.0,
profiles_sample_rate=1.0,
)
#################

app = connexion.App(__name__, options={"swagger_ui": True, "serve_spec": True})
app.add_api("api.yaml")

Expand Down

0 comments on commit fd70c58

Please sign in to comment.