Skip to content

Commit 9a2f4e1

Browse files
ref: span normalization allowed host config (#3245)
Co-authored-by: Hubert Deng <[email protected]>
1 parent cba2d4b commit 9a2f4e1

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

sentry/sentry.conf.example.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,6 @@ def get_internal_network():
380380

381381
# Configure Sentry JS SDK bundle URL template for Loader Scripts.
382382
# Learn more about the Loader Scripts: https://docs.sentry.io/platforms/javascript/install/loader/
383-
384383
# If you wish to host your own JS SDK bundles, set `SETUP_JS_SDK_ASSETS` environment variable to `1`
385384
# on your `.env` or `.env.custom` file. Then, replace the value below with your own public URL.
386385
# For example: "https://sentry.example.com/js-sdk/%s/bundle%s.min.js"
@@ -394,3 +393,15 @@ def get_internal_network():
394393

395394
# If you would like to use self-hosted Sentry with only errors enabled, please set this
396395
SENTRY_SELF_HOSTED_ERRORS_ONLY = env("COMPOSE_PROFILES") != "feature-complete"
396+
397+
#####################
398+
# Insights Settings #
399+
#####################
400+
401+
# Since version 24.3.0, Insights features are available on self-hosted. For Requests module,
402+
# there are scrubbing logic done on Relay to prevent high cardinality of stored HTTP hosts.
403+
# However in self-hosted scenario, the amount of stored HTTP hosts might be consistent,
404+
# and you may have allow list of hosts that you want to keep. Uncomment the following line
405+
# to allow specific hosts. It might be IP addresses or domain names (without `http://` or `https://`).
406+
407+
# SENTRY_OPTIONS["relay.span-normalization.allowed_hosts"] = ["example.com", "192.168.10.1"]

0 commit comments

Comments
 (0)