Sentry: Add ability to ignore in specific environment

Created on 8 Mar 2019  路  13Comments  路  Source: getsentry/sentry

Summary

Add the ability to ignore issues produced by specified environments.

Motivation

In our build process we have an error that pops up redietly and I would lkike to ignore this error when it comes from development, however the same error has the possibility to pop up in production and I would like to have these errors still be tracked in production. This would help prevent non issues from coming up as regressions but also allow them to show in environments that are important

Inbound Filters Rules On hold User Feedback

Most helpful comment

Would also love the inverse of this option, Ignore... > Until it happens for... > _ENV_

All 13 comments

Would also love the inverse of this option, Ignore... > Until it happens for... > _ENV_

Right, we have our test environment try to connect to other 3rd party api's test environments, and they often have issues, which we can ignore in our test environment, but we would never want to ignore in production.

This could be extremely useful

I was about to add request for the same thing, it would really be useful to have the ability to silence errors in specific environments. :+1:

I totally agree. Please, do it!

This would be very helpful!

This would be very very useful

I think the correct solution to this is skipping these events from the client using an event processor or the before_send hook.

Do you think this would address your use case?

Not sure you can call that a "correct solution". A workaround that requires coding on our end, sure.

Sentry already provides some very useful filtering capability, so this wouldn't be too different. Or at least the ability to use environment in our Alert definition to not get alerts on these errors in non-prod environments

Re-up on the issue and response to BYK comment:
For my own purposes I wouldn't be streaming *anything from my lower environments to Sentry but some of my engineers really appreciate the features it provides while debugging their in-dev code SO we're sending the events across. What I want to do is not be "Alerted" about these since that has a different implication (Alerts imply urgent action or even Pages which the lower environments don't deserve) SO being able to disable the Alerts on the Sentry side for a given environment is the "correct solution" since those who want the data there at all need all of the data "sent" to Sentry just not "Alerted" on.

Right now I see alert rules for matching a specific environment or any environment. Sounds like what we need here is an anything but these environments option.

Not sure how easy it is to implement, especially on the UI side though. @wedamija @markstory who shall we ping for an ultimate answer on this?

Ignoring specific environments would require additional UI options and additional logic in the regression handling logic. None of that work is currently on any team roadmap that I'm aware of, but those plans are always very fluid.

For my current purposes the feature as implemented may do the job since the services I'm working with at the moment only have 1 production environment so "Only For Prod" instead of the current "All Environments" gets me by for now and sorry I missed that. We have 3 different "Production Like" environments so the ability to specify Alert on those and not on our 2 "lower" environments (So not even an "All but this one" but really a "Alert for these specific environments only") would still be a useful feature just not as urgent on our part if it's not in your backlog.

In my case, a few specific app's errors are completely ok for the dev environment but are red flags for the production environment. It would be great if I could use ignore the issue until it happens in production

But it's not only about alerts: I want to see all other errors in the dev environment to fix it before they'll pass to production. So, I think it's should be issue-specific setting, not a project-specific

Was this page helpful?
0 / 5 - 0 ratings