Skip to content

Commit

Permalink
Update development and production settings: remove dummy cache config…
Browse files Browse the repository at this point in the history
…uration and enhance Sentry integration with tracing support
  • Loading branch information
eduzen committed Jan 4, 2025
1 parent 8191bbc commit 3f37a17
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
6 changes: 0 additions & 6 deletions website/settings/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
INTERNAL_IPS = ["127.0.0.1"]
CORS_ALLOW_ALL_ORIGINS = True

CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.dummy.DummyCache",
}
}

MEDIA_URL = "https://media.eduzen.ar/"

DEBUG_TOOLBAR_CONFIG = {"SHOW_TOOLBAR_CALLBACK": lambda x: True}
Expand Down
16 changes: 13 additions & 3 deletions website/settings/prod.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import sentry_sdk
from decouple import Csv, config
from sentry_sdk.integrations.django import DjangoIntegration

from .base import * # noqa
from .base import LOG_LEVEL # noqa
Expand Down Expand Up @@ -52,7 +53,16 @@
if (not DEBUG) and SENTRY_DSN:
sentry_sdk.init(
dsn=SENTRY_DSN, # type: ignore
release=RELEASE, # type: ignore
traces_sample_rate=0.10,
profiles_sample_rate=0.10,
release=RELEASE, # type: ignore\
enable_tracing=True,
traces_sample_rate=0.20,
profiles_sample_rate=0.20,
integrations=[
DjangoIntegration(
cache_spans=True,
transaction_style="url",
middleware_spans=True,
signals_spans=True,
)
],
)

0 comments on commit 3f37a17

Please sign in to comment.