Skip to content

Commit

Permalink
Add Sentry CeleryIntegration (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariatta committed Dec 14, 2020
1 parent 7696592 commit c45bf2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion miss_islington/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import cachetools
import sentry_sdk
from aiohttp import web
from sentry_sdk.integrations.celery import CeleryIntegration
from gidgethub import aiohttp as gh_aiohttp
from gidgethub import routing, sansio

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


sentry_sdk.init(os.environ.get("SENTRY_DSN"))
sentry_sdk.init(os.environ.get("SENTRY_DSN"), integrations=[CeleryIntegration()])


async def main(request):
Expand Down

0 comments on commit c45bf2b

Please sign in to comment.