-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
ref(replay): delete seer data on replay deletes #97279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #97279 +/- ##
=======================================
Coverage 80.61% 80.61%
=======================================
Files 8559 8559
Lines 376667 376755 +88
Branches 24492 24491 -1
=======================================
+ Hits 303660 303731 +71
- Misses 72637 72654 +17
Partials 370 370 |
@@ -43,32 +47,17 @@ | |||
), | |||
), | |||
) | |||
def delete_recording_segments(project_id: int, replay_id: str, **kwargs: Any) -> None: | |||
def delete_replay( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed this to match its purpose of deleting a single replay - archive event, del recording segments, and request seer. Maybe this can later be replaced by this task I removed recently, since they seem to be very similar?
"""Asynchronously delete a replay.""" | ||
metrics.incr("replays.delete_recording_segments", amount=1, tags={"status": "started"}) | ||
metrics.incr("replays.delete_replay", amount=1, tags={"status": "started"}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if we're using this metric anywhere, I can restore if needed
The shared util was removed because now we want to migrate to the existing |
Part of [REPLAY-538: Delete async summaries when replay is deleted](https://linear.app/getsentry/issue/REPLAY-538/delete-async-summaries-when-replay-is-deleted). Sends a seer request to delete summaries when a replay is deleted from bulk delete or replay details endpoints. Seer deletes were not added to the delete_replays script. --------- Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
Part of REPLAY-538: Delete async summaries when replay is deleted. Sends a seer request to delete summaries when a replay is deleted from bulk delete or replay details endpoints. Seer deletes were not added to the delete_replays script.
Seer endpoint: https://github.com/getsentry/seer/pull/3101