mirror of
https://github.com/zulip/zulip.git
synced 2025-10-28 10:33:54 +00:00
sentry: Optionally enable tracing, with transactions and spans.
This commit is contained in:
committed by
Tim Abbott
parent
3cbce0c5c7
commit
f64b9475c1
@@ -51,6 +51,8 @@ def add_context(event: "Event", hint: "Hint") -> Optional["Event"]:
|
||||
|
||||
|
||||
def setup_sentry(dsn: Optional[str], environment: str) -> None:
|
||||
from django.conf import settings
|
||||
|
||||
if not dsn:
|
||||
return
|
||||
|
||||
@@ -80,6 +82,8 @@ def setup_sentry(dsn: Optional[str], environment: str) -> None:
|
||||
# PII while having the identifiers needed to determine that an
|
||||
# exception only affects a small subset of users or realms.
|
||||
send_default_pii=True,
|
||||
traces_sample_rate=settings.SENTRY_TRACE_RATE,
|
||||
profiles_sample_rate=settings.SENTRY_PROFILE_RATE,
|
||||
)
|
||||
|
||||
# Ignore all of the loggers from django.security that are for user
|
||||
|
||||
Reference in New Issue
Block a user