Skip to content

Instantly share code, notes, and snippets.

View wmak's full-sized avatar
🔥
?

William Mak wmak

🔥
?
View GitHub Profile
diff --git a/src/sentry/search/events/builder/metrics.py b/src/sentry/search/events/builder/metrics.py
index 019653f227..e03920bf9a 100644
--- a/src/sentry/search/events/builder/metrics.py
+++ b/src/sentry/search/events/builder/metrics.py
@@ -44,6 +44,7 @@ from sentry.utils.snuba import DATASETS, Dataset, bulk_snql_query, raw_snql_quer
class MetricsQueryBuilder(QueryBuilder):
requires_organization_condition = True
organization_column: str = "organization_id"
+ is_alerts_query = False
diff --git a/src/sentry/search/events/builder/metrics.py b/src/sentry/search/events/builder/metrics.py
index 019653f227..4e1afa4e53 100644
--- a/src/sentry/search/events/builder/metrics.py
+++ b/src/sentry/search/events/builder/metrics.py
@@ -43,6 +43,7 @@ from sentry.utils.snuba import DATASETS, Dataset, bulk_snql_query, raw_snql_quer
class MetricsQueryBuilder(QueryBuilder):
requires_organization_condition = True
+ is_alerts_query = False
organization_column: str = "organization_id"
@wmak
wmak / event.json
Last active April 22, 2021 00:13
Incorrect Parent Span Repro
{
"event_id": "58cf30f61e064c59b3f6cb0e158db393",
"project": 2301244,
"release": null,
"dist": null,
"platform": "python",
"message": "",
"datetime": "2021-04-22T00:02:39.743010+00:00",
"tags": [
[
function notify(){
if hash notify-send 2>/dev/null; then
notify-send $1 $2 --urgency=${3:-normal}
elif hash terminal-notifier 2>/dev/null; then
echo $2 | terminal-notifier -sound default
else
echo $1
fi
}