Skip to content

Commit

Permalink
fix(alerts): Use metrics_enhanced_performance dataset (#78302)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ceorourke committed Sep 27, 2024
1 parent 796bbcc commit 7a98a75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sentry/seer/anomaly_detection/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7a98a75

Please sign in to comment.