Share on Twitter
Share on Facebook
Share on HackerNews

Logging Symfony Errors with Sentry

Following up on our native Laravel error tracking integration, we’re happy to announce native integration with Symfony via the sentry-symfony package.

Getting Started

Getting started with Symfony error tracking on Sentry is now easier than ever.

Install the sentry/sentry-symfony package:

$ composer require sentry/sentry-symfony

Enable the bundle in app/AppKernel.php:

class AppKernel extends Kernel
    public function registerBundles()
        $bundles = array(
            // ...

            new Sentry/SentryBundle/SentryBundle(),

        // ...

    // ...

And lastly, add your DSN to app/config/config.yml:

    dsn: ""

Learn More

Take a look at the sentry-symfony project on GitHub to learn more about how things are implemented, as well as additional details on using it with Sentry.

Your code is broken. Let's Fix it.
Get Started

More from the Sentry blog

ChangelogCodecovDashboardsDiscoverDogfooding ChroniclesEcosystemError MonitoringEventsGuest PostsMobileMoonlightingOpen SourcePerformance MonitoringRelease HealthSDK UpdatesSentry

Do you like corporate newsletters?

Neither do we. Sign up anyway.

© 2023 • Sentry is a registered Trademark
of Functional Software, Inc.