Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions config_dev.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ SENTRY_ENVIRONMENT=local
# excluding health check endpoints and similar from performance monitoring.
# SENTRY_TRACES_IGNORE_PATHS=/healthz,/readiness

# Sentry enable logs controls whether Python log records are forwarded to Sentry.
# SENTRY_ENABLE_LOGS=False

# Lippupiste has a private API for accessing event data. If you have
# access to this API, enter your access URL here. Note that you will
# very likely need to customize the importer as well.
Expand Down
2 changes: 2 additions & 0 deletions linkedevents/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ def sentry_anonymize_user_repr(obj, hint):
SECRET_KEY=(str, ""),
SECURE_PROXY_SSL_HEADER=(tuple, None),
SENTRY_DSN=(str, ""),
SENTRY_ENABLE_LOGS=(bool, False),
SENTRY_ENVIRONMENT=(str, "local"),
SENTRY_PROFILE_SESSION_SAMPLE_RATE=(float, None),
SENTRY_RELEASE=(str, None),
Expand Down Expand Up @@ -384,6 +385,7 @@ def sentry_traces_sampler(sampling_context: SamplingContext) -> float:
environment=env("SENTRY_ENVIRONMENT"),
release=env("SENTRY_RELEASE"),
integrations=[DjangoIntegration()],
enable_logs=env("SENTRY_ENABLE_LOGS"),
event_scrubber=EVENT_SCRUBBER,
traces_sampler=sentry_traces_sampler,
profile_session_sample_rate=env("SENTRY_PROFILE_SESSION_SAMPLE_RATE"),
Expand Down
Loading