Features
- Add
options.ignoredErrors
to filter out errors that match a certain String or Regex (#4083)- The matching is attempted on
event.message
,event.formatted
, and{event.throwable.class.name}: {event.throwable.message}
- Can be set in
sentry.properties
, e.g.ignored-errors=Some error,Another .*
- Can be set in environment variables, e.g.
SENTRY_IGNORED_ERRORS=Some error,Another .*
- For Spring Boot, it can be set in
application.properties
, e.g.sentry.ignored-errors=Some error,Another .*
- The matching is attempted on
- Log OpenTelemetry related Sentry config (#4122)
Fixes
- Avoid logging an error when a float is passed in the manifest (#4031)
- Add
request
details to transactions created through OpenTelemetry (#4098)- We now add HTTP request method and URL where Sentry expects it to display it in Sentry UI
- Remove
java.lang.ClassNotFoundException
debug logs when searching for OpenTelemetry marker classes (#4091)- There was up to three of these, one for
io.sentry.opentelemetry.agent.AgentMarker
,io.sentry.opentelemetry.agent.AgentlessMarker
andio.sentry.opentelemetry.agent.AgentlessSpringMarker
. - These were not indicators of something being wrong but rather the SDK looking at what is available at runtime to configure itself accordingly.
- There was up to three of these, one for
- Do not instrument File I/O operations if tracing is disabled (#4051)
- Do not instrument User Interaction multiple times (#4051)
- Speed up view traversal to find touched target in
UserInteractionIntegration
(#4051) - Reduce IPC/Binder calls performed by the SDK (#4058)
Behavioural Changes
- Reduce the number of broadcasts the SDK is subscribed for (#4052)
- Drop
TempSensorBreadcrumbsIntegration
- Drop
PhoneStateBreadcrumbsIntegration
- Reduce number of broadcasts in
SystemEventsBreadcrumbsIntegration
- Drop
Current list of the broadcast events can be found here. If you'd like to subscribe for more events, consider overriding the SystemEventsBreadcrumbsIntegration
as follows:
SentryAndroid.init(context) { options ->
options.integrations.removeAll { it is SystemEventsBreadcrumbsIntegration }
options.integrations.add(SystemEventsBreadcrumbsIntegration(context, SystemEventsBreadcrumbsIntegration.getDefaultActions() + listOf(/* your custom actions */)))
}
If you would like to keep some of the default broadcast events as breadcrumbs, consider opening a GitHub issue.
- Set mechanism
type
tosuppressed
for suppressed exceptions (#4125)- This helps to distinguish an exceptions cause from any suppressed exceptions in the Sentry UI