Skip to content

Commit 20a12ee

Browse files
authored
ref(feedback): temp metric to monitor replay context behavior (#96775)
Relates to the TODO on L95. In beta we had some test endpoints to manually ingest feedback. We shouldn't need this case anymore since replay context is filled in by relay. Using a metric to confirm
1 parent fcc68ca commit 20a12ee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sentry/feedback/usecases/ingest/create_feedback.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ def fix_for_issue_platform(event_data: dict[str, Any]) -> dict[str, Any]:
9797
if not event_data["contexts"].get("replay") and event_data["contexts"].get("feedback", {}).get(
9898
"replay_id"
9999
):
100+
# Temporary metric to confirm this behavior is no longer needed.
101+
metrics.incr("feedback.create_feedback_issue.filled_missing_replay_context")
102+
100103
ret_event["contexts"]["replay"] = {
101104
"replay_id": event_data["contexts"].get("feedback", {}).get("replay_id")
102105
}

0 commit comments

Comments
 (0)