We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd35d73 commit 8d72ca7Copy full SHA for 8d72ca7
packages/node/src/sdk.ts
@@ -74,6 +74,14 @@ export function init(options: NodeOptions = {}): void {
74
options.dsn = process.env.SENTRY_DSN;
75
}
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
85
if (domain.active) {
86
setHubOnCarrier(getMainCarrier(), getCurrentHub());
87
0 commit comments