We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fedbb0 commit 03b4f9cCopy full SHA for 03b4f9c
indexer/src/kadena-server/plugins/instrument.ts
@@ -5,10 +5,15 @@ import { nodeProfilingIntegration } from '@sentry/profiling-node';
5
/**
6
* Sentry configuration
7
*/
8
-const SENTRY_DSN = getRequiredEnvString('SENTRY_DSN');
+const SENTRY_DSN = process.env['SENTRY_DSN'];
9
const SENTRY_ENVIRONMENT = 'production';
10
const SENTRY_RELEASE = 'v1.0.0';
11
12
+if (SENTRY_DSN === undefined || SENTRY_DSN === 0) {
13
+ console.info('[INFO][SENTRY][LOG] Not using Sentry as it is disabled by not setting SENTRY_DSN env var');
14
+ return;
15
+}
16
+
17
// Initialize Sentry
18
console.info('[INFO][SENTRY][INIT] Initializing Sentry error reporting');
19
Sentry.init({
0 commit comments