Skip to content

Commit aaf3508

Browse files
ryan953andrewshie-sentry
authored andcommitted
feat(replay): Expose issue level in the replay-event-meta endpoint (#97551)
1 parent fac6fc6 commit aaf3508

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/sentry/replays/endpoints/organization_replay_events_meta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ def get_field_list(
3838

3939
fields = [
4040
"error.type",
41-
"error.value", # Deprecated, use title instead. See replayDataUtils.tsx
4241
"id",
4342
"issue.id",
4443
"issue",
4544
"timestamp",
4645
"title",
46+
"level",
4747
]
4848
dataset_label = request.GET.get("dataset", Dataset.Discover.value)
4949
if dataset_label == Dataset.Discover.value:

tests/sentry/replays/endpoints/test_organization_replay_events_meta.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,20 @@ def test_simple(self) -> None:
6464
expected = [
6565
{
6666
"error.type": [],
67-
"error.value": [],
6867
"id": event_id_a,
6968
"issue.id": event_a.group.id,
7069
"issue": event_a.group.qualified_short_id,
70+
"level": "error",
7171
"project.name": self.project_1.slug,
7272
"timestamp": min_ago_ms.isoformat(),
7373
"title": "<unlabeled event>",
7474
},
7575
{
7676
"error.type": [],
77-
"error.value": [],
7877
"id": event_id_b,
7978
"issue.id": event_b.group.id,
8079
"issue": event_b.group.qualified_short_id,
80+
"level": "error",
8181
"project.name": self.project_2.slug,
8282
"timestamp": min_ago_ms.isoformat(),
8383
"title": "<unlabeled event>",
@@ -115,10 +115,10 @@ def test_rage_clicks(self) -> None:
115115
expected = [
116116
{
117117
"error.type": "",
118-
"error.value": "",
119118
"id": event_id_a,
120119
"issue.id": group_info.group.id,
121120
"issue": group_info.group.qualified_short_id,
121+
"level": "error",
122122
"project.name": self.project.slug,
123123
"timestamp": self.min_ago.isoformat(),
124124
"title": "Rage Click",

0 commit comments

Comments
 (0)