-
-
Notifications
You must be signed in to change notification settings - Fork 462
Closed
Description
Integration
sentry
Java Version
21
Version
8.2.0
Steps to Reproduce
Create a SentryHandler like the following, in this case setting the list of ignored errors:
SentryOptions options = new SentryOptions();
options.setIgnoredErrors(List.of("error1", "error2"));
...
SentryHandler handler = new SentryHandler(options);
...Register the handler and when an issue is handled by Sentry, realise that the list of ignored errors is actually empty.
This is due to the fact that:
- The
SentryHandlerconstructor always setsenableExternalConfiguration = trueand thus triggers a configuration merge PropertiesProvider::getList()returns an empty list if the property (e.g.ignored-errorsin this case) is missingSentryOptions::setIgnoredErrors()called by themerge()function replaces the list containing[error1, error2]from the internal options with an empty list[]created previously
Could you provide a way to instantiate a SentryHandler which doesn't enable external configuration?
Expected Result
The list of ignored errors is [error1, error2].
Actual Result
The list of ignored errors is [] (empty list).
melloware
Metadata
Metadata
Assignees
Labels
No labels
Projects
Status
Waiting for: Product Owner