Skip to content

How to configure Sentry🔗

Installation🔗

1
composer require sentry/sentry-symfony

Copy every files of this directory to your project

Configuration🔗

With Sentry, we use 2 variables to group our errors : version & deploy env.

For the first you will need a VERSION file in your app root directory, which you'll increase before each deploy.

The APP_RUNTIME_ENV variable is set by the provisionning to the environment name to which is deployed the application (e.g: production, staging, ...). It's set by default to APP_RUNTIME_ENV=local in your .env for development purposes on your local machine.

Sentry in dev🔗

You can enable Sentry in your dev env, by adding the SENTRY_DSN entry in your .env.dev.local file

Project reference🔗


Last update: December 20, 2024