sentry-java
sentry-java copied to clipboard
Add ignoreTransactions and ignoreErrors
Background:
To further simplfiy ignoring certain events from being sent to sentry, it is also suggested to provide ignoreTransactions and ignoreErrors
More info here develop docs updated: https://develop.sentry.dev/sdk/features/#event-sampling
- [ ] ignoreErrors
- [ ] ignoreTransactions
- [ ] SDK docs
@romtsn or @adinauer is it relevant to track this with another ticket for android?
We already have ignoreExceptionsForType, is this supposed to be ignoreErrors?
It's fine to track this for android here as well, imo.
Keep client reports in mind: https://github.com/getsentry/team-webplatform-meta/issues/46#issuecomment-1523501834
@smeubank Can you provide the final decision on this issue? Also, is there a doc we can refer to?
We already have ignoreExceptionsForType, is this supposed to be ignoreErrors?
if this is the same as ignoreErrors in other platforms then it will suffice, would be ideal if the naming was more similar for simplicity of understanding across platforms. Seems it may behave slightly different to the other options in other SDKs though
ignoreTransactions is still needed in java and android according to docs
Java behavior: only applies to specific class type, but not child classes. - as opposed to .net and Dart.
Let's just focus on adding ignoreTransactions within this ticket.