getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
39.05k stars 4.19k forks source link

Inbound Filters by Environment #78853

Open dachakra opened 3 weeks ago

dachakra commented 3 weeks ago

Problem Statement

We enabled by mistake sentry in E2E cypress tests in our CI steps - I wanted to quickly filter it out without code change. I would also love to be able to define list of only allowed environments where any other would drop events. This way i can ensure we would validate each environment before we allow sentry events to be sent there. For example, we do have lot's of various UAT and review envs, and we do not always want to have sentry enabled there by default.

Solution Brainstorm

Add an inbound filter or allow list to project settings.

Product Area

Settings - Projects

getsantry[bot] commented 3 weeks ago

Routing to @getsentry/product-owners-ingestion-and-filtering for triage ⏲️

getsantry[bot] commented 3 weeks ago

Assigning to @getsentry/support for routing ⏲️

olksdr commented 1 week ago

@matejminar Seems like it's more likely your team could be working on this? Since there is also some UI work to be done. I'm assigning the Product Area: Settings team label for now.

getsantry[bot] commented 1 week ago

Routing to @getsentry/product-owners-settings for triage ⏲️

jjbayer commented 1 week ago

It should be possible to set this up on the sentry side using generic inbound filters: https://github.com/getsentry/sentry/blob/1be916df1b24fcca3c85c249898f03196510b7a0/src/sentry/ingest/inbound_filters.py#L383-L389