From bf11009b297daf5cf055d6b57b61dd191c4c7408 Mon Sep 17 00:00:00 2001 From: Reinaldy Rafli Date: Sun, 4 Aug 2024 14:54:49 +0700 Subject: [PATCH] ref: span normalization allowed host config --- sentry/sentry.conf.example.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/sentry/sentry.conf.example.py b/sentry/sentry.conf.example.py index a200124f83..a56e387a04 100644 --- a/sentry/sentry.conf.example.py +++ b/sentry/sentry.conf.example.py @@ -382,8 +382,23 @@ def get_internal_network(): # JS SDK Loader # ################# +# Configure Sentry JS SDK bundle URL template for Loader Scripts. +# Learn more about the Loader Scripts: https://docs.sentry.io/platforms/javascript/install/loader/ + JS_SDK_LOADER_DEFAULT_SDK_URL = "https://browser.sentry-cdn.com/%s/bundle%s.min.js" # 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"]