Skip to content

armgit / mwmbl

Public Imported from GitHub
0

An open source, non-profit web search engine

Disable PII in Sentry

Daoud Clarke44d57a204d21
diff --git a/mwmbl/settings_common.py b/mwmbl/settings_common.py
index 0f6fec3..b55647b 100644
--- a/mwmbl/settings_common.py
+++ b/mwmbl/settings_common.py
@@ -199,7 +199,8 @@ if SENTRY_DSN is not None:
# Set profiles_sample_rate to 1.0 to profile 100%
# of sampled transactions.
# We recommend adjusting this value in production.
- profiles_sample_rate=1.0,
+ profiles_sample_rate=0.1,
+ send_default_pii=False,
)
else:
print("No SENTRY_DSN set, skipping Sentry initialization")