Update logic for enabling monitoring instrumentation
The logic to enable the monitoring instrumentation was updated in both the Sentry and Baselime packages. This change ensures that the instrumentation is only enabled when the ENV variable 'ENABLE_MONITORING_INSTRUMENTATION' is specifically set to 'true' instead of simply checking for its existence.
This commit is contained in:
@@ -12,7 +12,7 @@ export async function registerInstrumentation() {
|
||||
// initialize the Sentry client in the server
|
||||
void initializeSentryServerClient();
|
||||
|
||||
if (!process.env.ENABLE_MONITORING_INSTRUMENTATION) {
|
||||
if (process.env.ENABLE_MONITORING_INSTRUMENTATION !== 'true') {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user