Uh oh!
There was an error while loading. Please reload this page.
[4.x] Rollback to is_a() to ignore exceptions instead of in_array() - #1587
Conversation
cleptric
commented
Sep 13, 2023
While I agree that We can address this in the next major version of the SDK, which we already started working on. |
fmata
commented
Sep 13, 2023
@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 ? |
cleptric
commented
Sep 13, 2023
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\IgnoreErrorsIntegrationsend_default_pii: trueregister_error_listener: falseregister_error_handler: falsemonolog:
handlers:
sentry:
type: sentrylevel: !php/const Monolog\Logger::ERRORhub_id: Sentry\State\HubInterfaceservices:
Sentry\Integration\IgnoreErrorsIntegration:
arguments:
$options:
ignore_exceptions:
- ApiPlatform\Symfony\Validator\Exception\ValidationException
- Symfony\Component\HttpKernel\Exception\HttpExceptionInterface
- Symfony\Component\Security\Core\Exception\AccessDeniedExceptionAll 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\AccessDeniedExceptionsend_default_pii: trueregister_error_listener: falseregister_error_handler: falsemonolog:
handlers:
sentry:
type: sentrylevel: !php/const Monolog\Logger::ERRORhub_id: Sentry\State\HubInterfaceAll children of |
cleptric
commented
Sep 14, 2023
I recommend reverting back to |
stayallive
left a comment
There was a problem hiding this comment.
Excellent change. Going to make it much easier to ignore a certain class of exceptions 👍
cleptric
commented
Oct 18, 2023
Will fix CI later. |
Hello,
#1503 reintroduced
ignore_exceptionsin 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