Skip to content
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

Documentation error about "ignore_exceptions" #798

Closed
fernandosngular opened this issue Jan 8, 2024 · 2 comments
Closed

Documentation error about "ignore_exceptions" #798

fernandosngular opened this issue Jan 8, 2024 · 2 comments
Assignees

Comments

@fernandosngular
Copy link

How do you use Sentry?

Sentry SaaS (sentry.io)

SDK version

4.11.0

Steps to reproduce

  1. I have sentry-symfony in 4.11 version in composer.json
  2. I use documentation (in UPDATE.md) about ignore_exceptions for configure it, and it not is working

Expected result

It not working

Actual result

It not working with:
Captura de pantalla 2024-01-08 a las 14 22 09

If i use last setting it work:

when@prod:
sentry:
dsn: '%env(SENTRY_DSN)%'
options:
ignore_exceptions:
- Symfony\Component\Security\Core\Exception\AccessDeniedException
- Symfony\Component\HttpKernel\Exception\NotFoundHttpException

@Lehren
Copy link

Lehren commented Feb 5, 2024

In my case it's not working because using it with Monolog turns the Exception into a string message if I do something like $this->logger->error($exception);
Don't know a way around that right now

@cleptric
Copy link
Member

cleptric commented Apr 9, 2024

Version 5.0.0 removed the IgnoreErrorsIntegration. The canonical way of ignoring exceptions is now the ignore_exceptions option.

sentry:
    options:
        ignore_exceptions:
            - "RuntimeException"

@cleptric cleptric closed this as completed Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

3 participants