Skip to content

Conversation

@shashjar
Copy link
Member

@shashjar shashjar commented Oct 10, 2025

Sets up double deletion of occurrences with EAP, as described in ID-997.

When deleting events from eventstore, we should also delete from EAP using the in-progress DeleteTraceItems endpoint (protobuf definition).

Rolling out behind an organization allowlist feature flag (empty for foreseeable future), so this won't be running once merged.

@linear
Copy link

linear bot commented Oct 10, 2025

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 10, 2025
from sentry.testutils.cases import TestCase


class TestEAPDeletion(TestCase):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basic tests for now, to be improved later

@shashjar shashjar changed the title feat(occurrences on eap): Sets up double deletion of occurrences with EAP feat(eap): Sets up double deletion of occurrences with EAP Oct 10, 2025
@codecov
Copy link

codecov bot commented Oct 14, 2025

Codecov Report

❌ Patch coverage is 91.66667% with 3 lines in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/deletions/tasks/nodestore.py 76.92% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           master   #101385   +/-   ##
========================================
  Coverage   80.96%    80.96%           
========================================
  Files        8709      8710    +1     
  Lines      387385    387420   +35     
  Branches    24523     24523           
========================================
+ Hits       313651    313684   +33     
- Misses      73386     73388    +2     
  Partials      348       348           

@shashjar shashjar marked this pull request as ready for review October 21, 2025 17:45
@shashjar shashjar requested a review from a team as a code owner October 21, 2025 17:45
Copy link
Contributor

@thetruecpaul thetruecpaul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed with EAP team re: using attr instead of trace ID, they said we should set up our systems how we want and let them build the systems under us

@shashjar shashjar merged commit f820c40 into master Nov 3, 2025
70 checks passed
@shashjar shashjar deleted the id-997-double-deletions-with-eap branch November 3, 2025 17:27
roggenkemper added a commit that referenced this pull request Nov 4, 2025
shashjar added a commit that referenced this pull request Nov 4, 2025
Sets up double deletion of occurrences with EAP, as described in
[ID-997](https://linear.app/getsentry/issue/ID-997/set-up-double-deletions-with-eap).

When deleting events from eventstore, we should also delete from EAP
using the in-progress `DeleteTraceItems` endpoint ([protobuf
definition](https://github.com/getsentry/sentry-protos/blob/main/proto/sentry_protos/snuba/v1/endpoint_delete_trace_items.proto)).

Rolling out behind an organization allowlist feature flag (empty for
foreseeable future), so this won't be running once merged.
priscilawebdev pushed a commit that referenced this pull request Nov 6, 2025
Sets up double deletion of occurrences with EAP, as described in
[ID-997](https://linear.app/getsentry/issue/ID-997/set-up-double-deletions-with-eap).

When deleting events from eventstore, we should also delete from EAP
using the in-progress `DeleteTraceItems` endpoint ([protobuf
definition](https://github.com/getsentry/sentry-protos/blob/main/proto/sentry_protos/snuba/v1/endpoint_delete_trace_items.proto)).

Rolling out behind an organization allowlist feature flag (empty for
foreseeable future), so this won't be running once merged.
priscilawebdev pushed a commit that referenced this pull request Nov 6, 2025
Jesse-Box pushed a commit that referenced this pull request Nov 12, 2025
andrewshie-sentry pushed a commit that referenced this pull request Nov 13, 2025
Sets up double deletion of occurrences with EAP, as described in
[ID-997](https://linear.app/getsentry/issue/ID-997/set-up-double-deletions-with-eap).

When deleting events from eventstore, we should also delete from EAP
using the in-progress `DeleteTraceItems` endpoint ([protobuf
definition](https://github.com/getsentry/sentry-protos/blob/main/proto/sentry_protos/snuba/v1/endpoint_delete_trace_items.proto)).

Rolling out behind an organization allowlist feature flag (empty for
foreseeable future), so this won't be running once merged.
andrewshie-sentry pushed a commit that referenced this pull request Nov 13, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Nov 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants