Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raven changed to Sentry SDK #51

Merged
merged 2 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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