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:
giancarlo
2024-05-29 13:57:36 +07:00
parent 789b06cc1b
commit 4be66cb3da
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}