Add option to delete logs
- Dominant language
- Python
- Stars
- 44.8k
- Forks
- 4.9k
- Avg merge
- 22h 21m
- Merged PRs (30d)
- 586
Description
### Problem Statement
It is currently not possible to delete logs from Sentry, either individually or in bulk.
### Solution Brainstorm
Add the option to delete logs to the UI.
The workaround at the moment, in extreme cases, is to delete the entire project in Sentry.
### Product Area
Settings
**Additional Context:**
* RPC for deletion:
* [https://github.com/getsentry/sentry-protos/blob/c0a1ed2f9fa643acd54d78b84fc71677f3f022d6/proto/sentry_protos/snuba/v1/endpoint_delete_trace_items.proto]()
* `sentry` util for interfacing with the deletion RPC
* [https://github.com/getsentry/sentry/blob/d26544689bfbbb81b0c2873f98e592920dcc91ec/src/sentry/utils/snuba_rpc.py#L284]()
* Conversation:
*
Contributor guide
Research direction
Start with the deletion RPC in endpoint_delete_trace_items.proto and the deletion helper at src/sentry/utils/snuba_rpc.py:284, then trace how the Settings UI should invoke it. Define whether individual and bulk deletion are both supported, and consider the existing conversation before implementing. Done means logs can be deleted from the UI without deleting the project.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend, frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 42/100