From 4ba9275991de1255ce18d38d35c6fd29a153abfd Mon Sep 17 00:00:00 2001 From: Tony Xiao Date: Mon, 1 Nov 2021 12:47:25 -0400 Subject: [PATCH] feat(suspect-spans): Add rollout percentage option Currently, the rollout strategy requires specifying projects one by one because we were targeting specific projects during the initial rollout. As the rollout happens for more projects, we want to be able to roll it out for a percentage of projects at a time. --- src/sentry/options/defaults.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sentry/options/defaults.py b/src/sentry/options/defaults.py index 29dcb15c1de0d8..0fae9c4559faca 100644 --- a/src/sentry/options/defaults.py +++ b/src/sentry/options/defaults.py @@ -376,7 +376,10 @@ # removed once it is fully rolled out. register("symbolicate-event.low-priority.metrics.submission-rate", default=0.0) +# This is to enable the ingestion of suspect spans by project ids. register("performance.suspect-spans-ingestion-projects", default={}) +# This is to enable the ingestion of suspect spans by project groups. +register("performance.suspect-spans-ingestion.rollout-rate", default=0) # Sampling rate for controlled rollout of a change where ignest-consumer spawns # special save_event task for transactions avoiding the preprocess.