Skip to content

Commit

Permalink
ref: span normalization allowed host config (#3245)
Browse files Browse the repository at this point in the history
Co-authored-by: Hubert Deng <[email protected]>
  • Loading branch information
aldy505 and hubertdeng123 authored Oct 10, 2024
1 parent cba2d4b commit 9a2f4e1
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion sentry/sentry.conf.example.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,6 @@ def get_internal_network():

# Configure Sentry JS SDK bundle URL template for Loader Scripts.
# Learn more about the Loader Scripts: https://docs.sentry.io/platforms/javascript/install/loader/

# If you wish to host your own JS SDK bundles, set `SETUP_JS_SDK_ASSETS` environment variable to `1`
# on your `.env` or `.env.custom` file. Then, replace the value below with your own public URL.
# For example: "https://sentry.example.com/js-sdk/%s/bundle%s.min.js"
Expand All @@ -394,3 +393,15 @@ def get_internal_network():

# If you would like to use self-hosted Sentry with only errors enabled, please set this
SENTRY_SELF_HOSTED_ERRORS_ONLY = env("COMPOSE_PROFILES") != "feature-complete"

#####################
# Insights Settings #
#####################

# Since version 24.3.0, Insights features are available on self-hosted. For Requests module,
# there are scrubbing logic done on Relay to prevent high cardinality of stored HTTP hosts.
# However in self-hosted scenario, the amount of stored HTTP hosts might be consistent,
# and you may have allow list of hosts that you want to keep. Uncomment the following line
# to allow specific hosts. It might be IP addresses or domain names (without `http://` or `https://`).

# SENTRY_OPTIONS["relay.span-normalization.allowed_hosts"] = ["example.com", "192.168.10.1"]

0 comments on commit 9a2f4e1

Please sign in to comment.