Skip to content

Commit

Permalink
Raven changed to Sentry SDK (#51)
Browse files Browse the repository at this point in the history
Co-authored-by: scott charlesworth <scott@kenja.io>
Co-authored-by: Jib <jib.adegunloye@mongodb.com>
  • Loading branch information
3 people authored Sep 6, 2024
1 parent bdc9590 commit 9dba074
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions {{cookiecutter.project_slug}}/backend/app/app/worker/tests.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
from raven import Client
import sentry_sdk
import asyncio

from app.core.celery_app import celery_app
from app.core.config import settings

client_sentry = Client(settings.SENTRY_DSN)
client_sentry = sentry_sdk.init(
dsn=settings.SENTRY_DSN,
# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for tracing.
traces_sample_rate=1.0,
# Set profiles_sample_rate to 1.0 to profile 100%
# of sampled transactions.
# We recommend adjusting this value in production.
profiles_sample_rate=1.0,
)


@celery_app.task(acks_late=True)
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.project_slug}}/backend/app/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies = [
"passlib[bcrypt]>=1.7.4",
"tenacity>=8.1.0",
"emails>=0.6.0",
"raven>=6.10.0",
"sentry-sdk>=2.13.0",
"jinja2>=3.1.2",
"python-jose[cryptography]>=3.3.0",
"pydantic>=2.0,<2.7",
Expand Down

0 comments on commit 9dba074

Please sign in to comment.