mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-02-12 13:01:51 +00:00
Adding Redis Integration
This commit is contained in:
parent
803aec96f0
commit
d48a4cf90a
1 changed files with 4 additions and 3 deletions
|
@ -2,14 +2,15 @@ import os
|
|||
|
||||
import sentry_sdk
|
||||
from sentry_sdk.integrations.rq import RqIntegration
|
||||
from sentry_sdk.integrations.redis import RedisIntegration
|
||||
|
||||
if os.path.exists('config_local.py'):
|
||||
if os.path.exists("config_local.py"):
|
||||
import config_local as config
|
||||
else:
|
||||
import config
|
||||
|
||||
sentry_sdk.init(
|
||||
config.SENTRY_DSN,
|
||||
integrations=[RqIntegration()],
|
||||
environment=config.SENTRY_ENV
|
||||
integrations=[RqIntegration(), RedisIntegration()],
|
||||
environment=config.SENTRY_ENV,
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue