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

Missing documentation for Monolog Integration #866

Open
DrauzJu opened this issue Jul 26, 2024 · 0 comments
Open

Missing documentation for Monolog Integration #866

DrauzJu opened this issue Jul 26, 2024 · 0 comments
Assignees

Comments

@DrauzJu
Copy link

DrauzJu commented Jul 26, 2024

How do you use Sentry?

Sentry SaaS (sentry.io)

SDK version

5.0.0

Steps to reproduce

Hi!

We would love to use the Sentry Symfony Integration, especially the Monolog Integration would be very useful.

Unfortunately, we are stuck about how to achieve this. The current documentation (https://docs.sentry.io/platforms/php/guides/symfony/) seems to be outdated. The proposed way to register a monolog handler does not work anymore.

composer require sentry/sentry-symfony

# Add monolog integration config as described in https://docs.sentry.io/platforms/php/guides/symfony/#monolog-integration

bin/console cache:warmup

Error:

Symfony\Component\Config\Exception\LoaderLoadException

There is no extension able to load the configuration for "sentry" (in "/app/config/sentry.yaml"). Looked for namespace "sentry", found "framework", "twig", "monolog", "debug", "web_profiler" in /app/config/sentry.yaml

Additionally, the current README does not help, because it does not mention the Monolog integration. Can somebody give us a starting point / working example?

Thanks a lot for your work and your help!

Expected result

We can use the Sentry Symfony package to report application errors to Sentry using a Monolog Handler.

Actual result

Error:

Symfony\Component\Config\Exception\LoaderLoadException

There is no extension able to load the configuration for "sentry" (in "/app/config/sentry.yaml"). Looked for namespace "sentry", found "framework", "twig", "monolog", "debug", "web_profiler" in /app/config/sentry.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants