Browse Source

feat(profiling): add a rollout rate for profile functions metrics (#69404)

rollout rate for the ingestion of profile functions metrics into the
generic metrics platform.
Francesco Vigliaturo 10 months ago
parent
commit
7fb207f515
1 changed files with 9 additions and 0 deletions
  1. 9 0
      src/sentry/options/defaults.py

+ 9 - 0
src/sentry/options/defaults.py

@@ -2373,6 +2373,15 @@ register(
     flags=FLAG_ALLOW_EMPTY | FLAG_AUTOMATOR_MODIFIABLE,
 )
 
+# rollout rate: % of profiles for which we ingest the extracted profile
+# functions metrics into the generic metrics platform
+register(
+    "profiling.generic_metrics.functions_ingestion.rollout_rate",
+    type=Float,
+    default=0.0,
+    flags=FLAG_AUTOMATOR_MODIFIABLE,
+)
+
 # Standalone spans
 register(
     "standalone-spans.process-spans-consumer.enable",