@@ -22,7 +22,7 @@ import cors from 'cors';
2222import debug from 'debug' ;
2323import express from 'express' ;
2424import passport from 'passport' ;
25- import * as Sentry from '@sentry/node' ;
25+ // import * as Sentry from '@sentry/node';
2626
2727/**
2828 * express midleware to parse req.body in POST.
@@ -55,7 +55,11 @@ const app = express();
5555 * Note: The Sentry DSN is read automatically from the environment variable
5656 * SENTRY_DSN, as specified in the DeploymentConfig. If no DSN is specified,
5757 * this integration does nothing.
58+ *
59+ * FIXME: Disabled for now. See OSCI-5419 and the upstream issue:
60+ * https://github.com/getsentry/sentry-javascript/issues/8654
5861 */
62+ /*
5963Sentry.init({
6064 integrations: [
6165 // Enable HTTP calls tracing.
@@ -67,18 +71,17 @@ Sentry.init({
6771 ],
6872 release: process.env.CIBOARD_SERVER_GIT_COMMIT || 'custom-build',
6973});
74+ */
7075
7176/*
7277 * RequestHandler creates a separate execution context, so that
7378 * transactions are isolated across requests.
7479 */
80+ /* FIXME: Disabled for now. See OSCI-5419.
7581app.use(Sentry.Handlers.requestHandler());
76- /*
77- * FIXME: Disabled for now. See OSCI-5419 and the upstream issue:
78- * https://github.com/getsentry/sentry-javascript/issues/8654
79- */
8082// TracingHandler creates a trace for every incoming request.
81- // app.use(Sentry.Handlers.tracingHandler());
83+ app.use(Sentry.Handlers.tracingHandler());
84+ */
8285
8386app . use ( cors ( ) ) ;
8487if ( app . get ( 'env' ) === 'development' ) {
@@ -141,8 +144,9 @@ import('./services/teiid');
141144/*
142145 * The Sentry error handler must be enabled before any other error
143146 * middleware but after all controllers.
147+ * FIXME: Disabled for now. See OSCI-5419.
144148 */
145- app . use ( Sentry . Handlers . errorHandler ( ) ) ;
149+ // app.use(Sentry.Handlers.errorHandler());
146150
147151log ( ' [i] Using port: %s' , cfg . port ) ;
148152
0 commit comments