Skip to content

Commit 437eed4

Browse files
authored
chore(generic-metrics): Add new options to toggle dropping percentiles (#70889)
We'll have 2 new options, one for disabling percentiles storage for an entire use case and another for org-level disabling. For both options, we have a simple list as the format
1 parent 62d8fcb commit 437eed4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/sentry/options/defaults.py

+16
Original file line numberDiff line numberDiff line change
@@ -1244,6 +1244,22 @@
12441244
flags=FLAG_AUTOMATOR_MODIFIABLE,
12451245
)
12461246

1247+
# Option to remove support for percentiles on a per-org basis.
1248+
# Add the org_id to list to disable percentiles.
1249+
register(
1250+
"sentry-metrics.drop-percentiles.per-org",
1251+
default=[],
1252+
flags=FLAG_AUTOMATOR_MODIFIABLE,
1253+
)
1254+
1255+
# Option to remove support for percentiles on a per-use case basis.
1256+
# Add the use case to list to disable percentiles.
1257+
register(
1258+
"sentry-metrics.drop-percentiles.per-use-case",
1259+
default=[],
1260+
flags=FLAG_AUTOMATOR_MODIFIABLE,
1261+
)
1262+
12471263
# Global and per-organization limits on the writes to the string indexer's DB.
12481264
#
12491265
# Format is a list of dictionaries of format {

0 commit comments

Comments
 (0)