From 7a98a75da4367822189c9f4abd0fa4e37798d95b Mon Sep 17 00:00:00 2001 From: Colleen O'Rourke Date: Fri, 27 Sep 2024 16:54:47 -0700 Subject: [PATCH] fix(alerts): Use metrics_enhanced_performance dataset (#78302) I was using a dataset for anomaly detection historical data that hit the dynamic sampling cap, but I should be using the metrics enhanced performance dataset for generic metrics. --- src/sentry/seer/anomaly_detection/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sentry/seer/anomaly_detection/utils.py b/src/sentry/seer/anomaly_detection/utils.py index 702431472fd87..5aebc29b058a2 100644 --- a/src/sentry/seer/anomaly_detection/utils.py +++ b/src/sentry/seer/anomaly_detection/utils.py @@ -190,7 +190,7 @@ def fetch_historical_data( dataset_label = "errors" elif dataset_label in ["generic_metrics", "transactions"]: # XXX: performance alerts dataset differs locally vs in prod - dataset_label = "discover" + dataset_label = "metricsEnhanced" dataset = get_dataset(dataset_label) if not project or not dataset or not alert_rule.organization: