Skip to content

Commit dbe7bfe

Browse files
authored
tasks: add sentry dramatiq integration (goauthentik#16167)
1 parent 05d4d20 commit dbe7bfe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

authentik/lib/sentry.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
from sentry_sdk.api import set_tag
2323
from sentry_sdk.integrations.argv import ArgvIntegration
2424
from sentry_sdk.integrations.django import DjangoIntegration
25+
from sentry_sdk.integrations.dramatiq import DramatiqIntegration
2526
from sentry_sdk.integrations.redis import RedisIntegration
2627
from sentry_sdk.integrations.socket import SocketIntegration
2728
from sentry_sdk.integrations.stdlib import StdlibIntegration
@@ -109,11 +110,12 @@ def sentry_init(**sentry_init_kwargs):
109110
dsn=CONFIG.get("error_reporting.sentry_dsn"),
110111
integrations=[
111112
ArgvIntegration(),
112-
StdlibIntegration(),
113113
DjangoIntegration(transaction_style="function_name", cache_spans=True),
114+
DramatiqIntegration(),
114115
RedisIntegration(),
115-
ThreadingIntegration(propagate_hub=True),
116116
SocketIntegration(),
117+
StdlibIntegration(),
118+
ThreadingIntegration(propagate_hub=True),
117119
],
118120
before_send=before_send,
119121
traces_sampler=traces_sampler,

0 commit comments

Comments
 (0)