Skip to content

Commit 0dda960

Browse files
authored
fix(uptime): Pass uptime_rule tag as a string (#76213)
This is raising a validation error in the issue platform, just fixing. Fixes SENTRY-3DEW <!-- Describe your PR here. -->
1 parent 13ebbc6 commit 0dda960

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/sentry/uptime/issue_platform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def build_event_data_for_occurrence(
9898
"received": datetime.fromtimestamp(result["actual_check_time_ms"] / 1000),
9999
"sdk": None,
100100
"tags": {
101-
"uptime_rule": project_subscription.id,
101+
"uptime_rule": str(project_subscription.id),
102102
},
103103
"timestamp": occurrence.detection_time.isoformat(),
104104
"contexts": {"trace": {"trace_id": result["trace_id"], "span_id": None}},

tests/sentry/uptime/test_issue_platform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def test(self):
104104
"project_id": 1,
105105
"received": datetime.datetime.now().replace(microsecond=0),
106106
"sdk": None,
107-
"tags": {"uptime_rule": project_subscription.id},
107+
"tags": {"uptime_rule": str(project_subscription.id)},
108108
"timestamp": occurrence.detection_time.isoformat(),
109109
"contexts": {"trace": {"trace_id": result["trace_id"], "span_id": None}},
110110
}

0 commit comments

Comments
 (0)