mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-03-09 15:40:09 +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
|
import sentry_sdk
|
||||||
from sentry_sdk.integrations.rq import RqIntegration
|
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
|
import config_local as config
|
||||||
else:
|
else:
|
||||||
import config
|
import config
|
||||||
|
|
||||||
sentry_sdk.init(
|
sentry_sdk.init(
|
||||||
config.SENTRY_DSN,
|
config.SENTRY_DSN,
|
||||||
integrations=[RqIntegration()],
|
integrations=[RqIntegration(), RedisIntegration()],
|
||||||
environment=config.SENTRY_ENV
|
environment=config.SENTRY_ENV,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue