Skip to content

Commit c45bf2b

Browse files
authored
Add Sentry CeleryIntegration (#423)
Closes python/miss-islington#390
1 parent 7696592 commit c45bf2b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

miss_islington/__main__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import cachetools
88
import sentry_sdk
99
from aiohttp import web
10+
from sentry_sdk.integrations.celery import CeleryIntegration
1011
from gidgethub import aiohttp as gh_aiohttp
1112
from gidgethub import routing, sansio
1213

@@ -19,7 +20,7 @@
1920
cache = cachetools.LRUCache(maxsize=500)
2021

2122

22-
sentry_sdk.init(os.environ.get("SENTRY_DSN"))
23+
sentry_sdk.init(os.environ.get("SENTRY_DSN"), integrations=[CeleryIntegration()])
2324

2425

2526
async def main(request):

0 commit comments

Comments
 (0)