Improve default Sentry SDK settings for Python

Fix #298
This commit is contained in:
Klaas van Schelven
2026-01-10 14:18:17 +01:00
parent 1b113d5912
commit ca3934ad40
3 changed files with 9 additions and 1 deletions

View File

@@ -76,7 +76,12 @@ def eat_your_own_dogfood(sentry_dsn, **kwargs):
default_kwargs = { default_kwargs = {
"dsn": sentry_dsn, "dsn": sentry_dsn,
# Don't event types which are not supported by Bugsink:
"traces_sample_rate": 0, "traces_sample_rate": 0,
"send_client_reports": False,
"auto_session_tracking": False,
"send_default_pii": True, "send_default_pii": True,
# see (e.g.) https://github.com/getsentry/sentry-python/issues/377 for why this is necessary; I really really # see (e.g.) https://github.com/getsentry/sentry-python/issues/377 for why this is necessary; I really really

View File

@@ -45,7 +45,10 @@ sentry_sdk.init(
# infer it, but explicitly setting it is more reliable: # infer it, but explicitly setting it is more reliable:
# release=..., # release=...,
# Don't event types which are not supported by Bugsink:
traces_sample_rate=0, traces_sample_rate=0,
send_client_reports=False,
auto_session_tracking=False,
) )
{% endcode %} {% endcode %}

File diff suppressed because one or more lines are too long