Skip to content

Commit 4e31aae

Browse files
committed
Temporarily disable Sentry integration entirely
Reference: OSCI-5419
1 parent 2df2b5f commit 4e31aae

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

src/logger.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const util = require('util');
2323
const debug = require('debug');
2424
const pino = require('pino');
2525
const pinoPretty = require('pino-pretty');
26-
const pinoSentry = require('pino-sentry');
26+
// const pinoSentry = require('pino-sentry');
2727

2828
/*
2929
* Pretty-print log messages to the console-using pino-pretty. In addition
@@ -38,8 +38,9 @@ const pinoStreams = pino.multistream([
3838
* Note: The Sentry DSN is read automatically from the environment variable
3939
* SENTRY_DSN, as specified in the DeploymentConfig. If no DSN is specified,
4040
* this stream does nothing.
41+
* FIXME: Disabled for now. See OSCI-5419.
4142
*/
42-
{ stream: pinoSentry.createWriteStream(), level: 'warn' },
43+
// { stream: pinoSentry.createWriteStream(), level: 'warn' },
4344
]);
4445

4546
/**

src/server.ts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import cors from 'cors';
2222
import debug from 'debug';
2323
import express from 'express';
2424
import 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+
/*
5963
Sentry.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.
7581
app.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

8386
app.use(cors());
8487
if (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

147151
log(' [i] Using port: %s', cfg.port);
148152

0 commit comments

Comments
 (0)