From bda431775804854c52362377d1a8003d6c731a31 Mon Sep 17 00:00:00 2001 From: Michael Sheakoski Date: Sun, 15 Apr 2018 21:57:23 -0400 Subject: [PATCH 1/2] Make Sentry bundle easier to use * Set a default value for the SENTRY_DSN env var to prevent errors during deployment * Merge config/packages/prod/sentry.yaml into config/packages/sentry.yaml * Sentry will be enabled in any environment where a non-blank SENTRY_DSN env var is provided --- .../sentry-symfony/1.0/config/packages/prod/sentry.yaml | 2 -- sentry/sentry-symfony/1.0/config/packages/sentry.yaml | 9 +++++++++ 2 files changed, 9 insertions(+), 2 deletions(-) delete mode 100644 sentry/sentry-symfony/1.0/config/packages/prod/sentry.yaml diff --git a/sentry/sentry-symfony/1.0/config/packages/prod/sentry.yaml b/sentry/sentry-symfony/1.0/config/packages/prod/sentry.yaml deleted file mode 100644 index 342036fe4..000000000 --- a/sentry/sentry-symfony/1.0/config/packages/prod/sentry.yaml +++ /dev/null @@ -1,2 +0,0 @@ -sentry: - dsn: '%env(SENTRY_DSN)%' diff --git a/sentry/sentry-symfony/1.0/config/packages/sentry.yaml b/sentry/sentry-symfony/1.0/config/packages/sentry.yaml index e94da2d6d..1d0e2e83f 100644 --- a/sentry/sentry-symfony/1.0/config/packages/sentry.yaml +++ b/sentry/sentry-symfony/1.0/config/packages/sentry.yaml @@ -1,4 +1,13 @@ +parameters: + # Add a fallback SENTRY_DSN if the env var is not set. This allows you to + # run cache:warmup even if your environment variables are not available yet. + # You should not need to change this value. + env(SENTRY_DSN): '' + sentry: + # Remove the `resolve:` operator if you are using Symfony 3.3 + dsn: '%env(resolve:SENTRY_DSN)%' + options: curl_method: async From 7a67f82289e39203308e9ea5e6655f5ebf0f03b9 Mon Sep 17 00:00:00 2001 From: msheakoski Date: Mon, 23 Apr 2018 12:06:37 -0400 Subject: [PATCH 2/2] Remove the note for unsupported Symfony versions --- sentry/sentry-symfony/1.0/config/packages/sentry.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/sentry/sentry-symfony/1.0/config/packages/sentry.yaml b/sentry/sentry-symfony/1.0/config/packages/sentry.yaml index 1d0e2e83f..400702c34 100644 --- a/sentry/sentry-symfony/1.0/config/packages/sentry.yaml +++ b/sentry/sentry-symfony/1.0/config/packages/sentry.yaml @@ -5,7 +5,6 @@ parameters: env(SENTRY_DSN): '' sentry: - # Remove the `resolve:` operator if you are using Symfony 3.3 dsn: '%env(resolve:SENTRY_DSN)%' options: