Skip to content

Conversation

onewland
Copy link
Contributor

For deleting PII in EAP, we aim to start with an approach that mirrors what we do for search_issues. We want the request to arrive through RPC, though. This change creates a stub for allowing a caller to request deleting items for a trace, though it currently does nothing.

I'm separating this out to make the change that involves real functionality smaller.

Requires getsentry/sentry-protos#144

https://linear.app/getsentry/issue/EAP-282/create-new-rpc-endpoint-for-deletion-from-eap-items

@onewland onewland requested review from a team as code owners September 17, 2025 22:00

def _execute(self, request: DeleteTraceItemsRequest) -> DeleteTraceItemsResponse:
if len(request.trace_ids) < 1:
raise BadSnubaRPCRequestException("trace_id is required for deleting a trace.")
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The first pass of this is only going to support deletion by trace_ids and filters support will come later. If you think it makes things clearer, I can raise a NotImplementedError if filters is set, but practically speaking I don't think anybody will call this endpoint until the details are filled in

@onewland onewland merged commit 6c487c6 into master Sep 18, 2025
34 of 35 checks passed
@onewland onewland deleted the feat/add-delete-rpc-endpoint branch September 18, 2025 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants