-
-
Notifications
You must be signed in to change notification settings - Fork 452
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
[4.x] Rollback to is_a() to ignore exceptions instead of in_array() #1587
Conversation
While I agree that We can address this in the next major version of the SDK, which we already started working on. |
@cleptric beneficial or not, it was the behavior until a minor release (3.17) which changed it without warning or upgrade note. The mistake is here, 3.17 already breaks many apps by alerting with false positives. Revert a breaking change of a documented feature is sem-ver compliant. Mistake can happens :) but do not respect sem-ver is a bad signal for your users. Or maybe there is a solution not deprecated. Can you give me an hint ? |
Can you clarify what you mean by |
Using sentry/sentry-symfony, Before 3.17 : sentry:
dsn: '%env(SENTRY_DSN)%'
options:
environment: '%app.deploy_env%'
integrations:
- Sentry\Integration\IgnoreErrorsIntegration
send_default_pii: true
register_error_listener: false
register_error_handler: false
monolog:
handlers:
sentry:
type: sentry
level: !php/const Monolog\Logger::ERROR
hub_id: Sentry\State\HubInterface
services:
Sentry\Integration\IgnoreErrorsIntegration:
arguments:
$options:
ignore_exceptions:
- ApiPlatform\Symfony\Validator\Exception\ValidationException
- Symfony\Component\HttpKernel\Exception\HttpExceptionInterface
- Symfony\Component\Security\Core\Exception\AccessDeniedException All children of After upgrade to >= 3.17, we removed all deprecated calls : sentry:
dsn: '%env(SENTRY_DSN)%'
options:
environment: '%app.deploy_env%'
ignore_exceptions:
- ApiPlatform\Symfony\Validator\Exception\ValidationException
- Symfony\Component\HttpKernel\Exception\HttpExceptionInterface
- Symfony\Component\Security\Core\Exception\AccessDeniedException
send_default_pii: true
register_error_listener: false
register_error_handler: false
monolog:
handlers:
sentry:
type: sentry
level: !php/const Monolog\Logger::ERROR
hub_id: Sentry\State\HubInterface All children of |
I recommend reverting back to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent change. Going to make it much easier to ignore a certain class of exceptions 👍
Will fix CI later. |
Hello,
#1503 reintroduced
ignore_exceptions
in config and deprecatedIgnoreErrorsIntegration
. As reported in #1503 (comment) the behavior changed : before we could list interfaces or class hierarchy to ignore, after we must list all children exceptions (dozens or more in a decent project as stated by @stayallive).It has been merged and released in the minor release 3.17. But deprecates a feature whithout upgrade path to have the exact
same feature in a minor release is not sem ver compliant.
Can you merge my PR and release a new patch version to rollback as before 3.17 ?
Thanks