Skip to content

Commit a008f84

Browse files
authored
ref(profiling): add deny list check when ingesting function metrics for a given project (#69180)
1 parent 180de1b commit a008f84

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/sentry/profiles/task.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ def process_profile_task(
162162
and options.get("profiling.generic_metrics.functions_ingestion.enabled")
163163
and organization.id
164164
in options.get("profiling.generic_metrics.functions_ingestion.allowed_org_ids")
165+
and project.id
166+
not in options.get("profiling.generic_metrics.functions_ingestion.denied_proj_ids")
165167
):
166168
try:
167169
with metrics.timer("process_profile.get_metrics_dsn"):

0 commit comments

Comments
 (0)