File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Unreleased
4
4
5
+ - [ utils] fix: Preserve function prototype when filling
6
+ - [ node] feat: Read from ` SENTRY_RELEASE ` and ` SENTRY_ENVIRONMENT ` if present
7
+
5
8
## 4.6.1
6
9
7
10
- [ utils] fix: Patch ` tslib_1__default ` regression and add additional tests around it
Original file line number Diff line number Diff line change @@ -74,6 +74,14 @@ export function init(options: NodeOptions = {}): void {
74
74
options . dsn = process . env . SENTRY_DSN ;
75
75
}
76
76
77
+ if ( options . release === undefined && process . env . SENTRY_RELEASE ) {
78
+ options . release = process . env . SENTRY_RELEASE ;
79
+ }
80
+
81
+ if ( options . environment === undefined && process . env . SENTRY_ENVIRONMENT ) {
82
+ options . environment = process . env . SENTRY_ENVIRONMENT ;
83
+ }
84
+
77
85
if ( domain . active ) {
78
86
setHubOnCarrier ( getMainCarrier ( ) , getCurrentHub ( ) ) ;
79
87
}
You can’t perform that action at this time.
0 commit comments