File tree 2 files changed +12
-3
lines changed
{{cookiecutter.project_slug}}/backend/app
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 1
- from raven import Client
1
+ import sentry_sdk
2
2
import asyncio
3
3
4
4
from app .core .celery_app import celery_app
5
5
from app .core .config import settings
6
6
7
- client_sentry = Client (settings .SENTRY_DSN )
7
+ client_sentry = sentry_sdk .init (
8
+ dsn = settings .SENTRY_DSN ,
9
+ # Set traces_sample_rate to 1.0 to capture 100%
10
+ # of transactions for tracing.
11
+ traces_sample_rate = 1.0 ,
12
+ # Set profiles_sample_rate to 1.0 to profile 100%
13
+ # of sampled transactions.
14
+ # We recommend adjusting this value in production.
15
+ profiles_sample_rate = 1.0 ,
16
+ )
8
17
9
18
10
19
@celery_app .task (acks_late = True )
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ dependencies = [
27
27
" passlib[bcrypt]>=1.7.4" ,
28
28
" tenacity>=8.1.0" ,
29
29
" emails>=0.6.0" ,
30
- " raven>=6.10 .0" ,
30
+ " sentry-sdk>=2.13 .0" ,
31
31
" jinja2>=3.1.2" ,
32
32
" python-jose[cryptography]>=3.3.0" ,
33
33
" pydantic>=2.0,<2.7" ,
You can’t perform that action at this time.
0 commit comments