From 2b3aa43faf82d29498b2d0b9d226e9a582cb9310 Mon Sep 17 00:00:00 2001 From: Untone Date: Tue, 9 Apr 2024 20:19:46 +0300 Subject: [PATCH] glitchtip --- CHANGELOG.txt | 3 +++ pyproject.toml | 2 +- services/sentry.py | 4 ++-- settings.py | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index a747edc..7a18ae5 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,3 +1,6 @@ +[0.3.1] +- glitchtip connect + [0.3.0] - versions updates - startup refactoring diff --git a/pyproject.toml b/pyproject.toml index ef5b7b1..de3c01f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "discoursio-inbox" -version = "0.3.0" +version = "0.3.1" description = "Inbox server for discours.io" authors = ["Tony Rewin "] diff --git a/services/sentry.py b/services/sentry.py index e993b5b..6cd401c 100644 --- a/services/sentry.py +++ b/services/sentry.py @@ -3,14 +3,14 @@ from sentry_sdk.integrations.ariadne import AriadneIntegration from sentry_sdk.integrations.redis import RedisIntegration from sentry_sdk.integrations.starlette import StarletteIntegration -from settings import SENTRY_DSN +from settings import GLITCHTIP_DSN def start_sentry(): # sentry monitoring try: sentry_sdk.init( - SENTRY_DSN, + GLITCHTIP_DSN, # Set traces_sample_rate to 1.0 to capture 100% # of transactions for performance monitoring. traces_sample_rate=1.0, diff --git a/settings.py b/settings.py index db59481..024ab94 100644 --- a/settings.py +++ b/settings.py @@ -6,5 +6,5 @@ REDIS_URL = environ.get("REDIS_URL") or "redis://127.0.0.1" API_BASE = environ.get("API_BASE") or "http://127.0.0.1:8001/" AUTH_URL = environ.get("AUTH_URL") or "http://127.0.0.1:8080/graphql/" MODE = environ.get("MODE") or "production" -SENTRY_DSN = environ.get("SENTRY_DSN") +GLITCHTIP_DSN = environ.get("GLITCHTIP_DSN") DEV_SERVER_PID_FILE_NAME = "dev-server.pid"