Skip to content

Commit e902c94

Browse files
Support using SENTRY_RELEASE environment variable (#603)
Co-authored-by: Alex Bouma <[email protected]>
1 parent 7919690 commit e902c94

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Unreleased
44

55
- Remove incorrect checks if performance tracing should be enabled and rely on the transaction sampling decision instead (#600)
6+
- Fix `SENTRY_RELEASE` .env variable not working when using config caching (#603)
67

78
## 3.0.0
89

config/sentry.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
'dsn' => env('SENTRY_LARAVEL_DSN', env('SENTRY_DSN')),
66

7-
// capture release as git sha
8-
// 'release' => trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD')),
7+
// The release version of your application
8+
// Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))
9+
'release' => env('SENTRY_RELEASE'),
910

1011
// When left empty or `null` the Laravel environment will be used
1112
'environment' => env('SENTRY_ENVIRONMENT'),

0 commit comments

Comments
 (0)