diff --git a/CHANGELOG.md b/CHANGELOG.md index c0112697..1814d1f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Unreleased - Remove incorrect checks if performance tracing should be enabled and rely on the transaction sampling decision instead (#600) +- Fix `SENTRY_RELEASE` .env variable not working when using config caching (#603) ## 3.0.0 diff --git a/config/sentry.php b/config/sentry.php index 08c918bf..2635ca7b 100644 --- a/config/sentry.php +++ b/config/sentry.php @@ -4,8 +4,9 @@ 'dsn' => env('SENTRY_LARAVEL_DSN', env('SENTRY_DSN')), - // capture release as git sha - // 'release' => trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD')), + // The release version of your application + // Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD')) + 'release' => env('SENTRY_RELEASE'), // When left empty or `null` the Laravel environment will be used 'environment' => env('SENTRY_ENVIRONMENT'),