Skip to content

Commit

Permalink
Add sentry sdk to flask-mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
bitterpanda63 committed Jan 22, 2025
1 parent a3ab4a7 commit c57c75e
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 2 deletions.
7 changes: 7 additions & 0 deletions sample-apps/flask-mysql/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
import aikido_zen # Aikido package import
aikido_zen.protect()

# Sentry :
import sentry_sdk
sentry_sdk.init(
traces_sample_rate=1.0,
profiles_sample_rate=1.0,
)

import subprocess
from flask import Flask, render_template, request
from flaskext.mysql import MySQL
Expand Down
58 changes: 57 additions & 1 deletion sample-apps/flask-mysql/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion sample-apps/flask-mysql/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ dependencies = [
"flask-mysql (>=1.6.0,<2.0.0)",
"requests (>=2.32.3,<3.0.0)",
"cryptography (>=44.0.0,<45.0.0)",
"aikido_zen"
"aikido_zen",
"sentry-sdk (>=2.20.0,<3.0.0)"
]

[build-system]
Expand Down

0 comments on commit c57c75e

Please sign in to comment.