Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to ignore in specific environment #12341

Open
dexter-stpierre opened this issue Mar 8, 2019 · 59 comments
Open

Add ability to ignore in specific environment #12341

dexter-stpierre opened this issue Mar 8, 2019 · 59 comments

Comments

@dexter-stpierre
Copy link

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

@perl5punk
Copy link

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

@mlubavin-vg
Copy link

mlubavin-vg commented Jun 10, 2019

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

@pgrzesik
Copy link

pgrzesik commented Aug 2, 2019

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. 👍

@thiagoa
Copy link

thiagoa commented Aug 26, 2019

I totally agree. Please, do it!

@Neaox
Copy link

Neaox commented Sep 11, 2019

This would be very helpful!

@alxgln
Copy link

alxgln commented Nov 14, 2019

This would be very very useful

@BYK
Copy link
Member

BYK commented Nov 19, 2019

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?

@mlubavin-vg
Copy link

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

@omnipitous
Copy link

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.

@BYK
Copy link
Member

BYK commented Jan 3, 2020

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?

@markstory
Copy link
Member

markstory commented Jan 3, 2020

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.

@omnipitous
Copy link

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.

@b0g3r
Copy link

b0g3r commented Jul 18, 2020

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

@alondahari
Copy link

Would love it if I could configure sentry to log to the console instead of sending the event to sentry in certain environments (e.g. dev)

@Neaox
Copy link

Neaox commented May 3, 2021

@jazzdragon you can already do that.
In the beforeSend hook you can output the event to the console, then return null to prevent the event from being sent to Sentry.

https://docs.sentry.io/platforms/javascript/configuration/filtering/#using-beforesend

@connorads
Copy link

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

Now that Sentry have kindly released the AWS Lambda Layer integration I believe this makes these sorts of code solutions/workarounds not possible in a context when Sentry is automagically integrated.

@getsentry-release
Copy link

Routing to @getsentry/workflow for triage. ⏲️

@untitaker
Copy link
Member

re-routing this as ignoring individual issues is not within scope of relay, and given the discussion so far I don't think they're asking for a mechanism to drop data for quota management

@axilis-marko
Copy link

Is there any information on when this could be done?

@getsantry
Copy link
Contributor

getsantry bot commented Oct 12, 2024

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

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Oct 12, 2024
@jangjodi
Copy link
Contributor

Hi axilis-marko, this similar issue #57446 is in our backlog. Unfortunately I don't have an update on when we can prioritize it.

@axilis-marko
Copy link

@jangjodi thanks for the response. Upvoted that one as well.

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Oct 16, 2024
@jeremy-allocate
Copy link

@jangjodi As a paying customer, it's incredibly frustrating to see the most upvoted issue in the backlog go unaddressed for years. It really has me questioning how things work internally at Sentry, especially prioritization. Why even bother with a public backlog if you aren't going to listen to what your users want most? If there aren't obvious improvements to how prioritization happens, and soon, our org may have to consider moving to a different solution when our current contract is up. One of the things we value most is the response to user feedback, and I'm just not seeing enough of that in this case. Thanks for your consideration on this larger issue.

Image

@jangjodi
Copy link
Contributor

@rachrwang @Dhrumil-Sentry seeing that this is a highly requested feature, is this something we can prioritize in the near future?

@henrycjc
Copy link

This would be a great improvement. We are looking at ways to implement this ourselves, and it is proving difficult to build a robust solution.

@cobyeastwood183
Copy link

https://sentry.zendesk.com/agent/tickets/144475

@gaprl gaprl removed the Migrated label Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Status: No status
Development

No branches or pull requests