From 23936ff674c084b9fa31ce8f917a3a5cbc883f0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Grabovsk=C3=BD?= Date: Fri, 28 Jul 2023 10:31:40 +0200 Subject: [PATCH] Disable Sentry tracing handler Reference: OSCI-5419 --- src/server.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/server.ts b/src/server.ts index 8d3a7a4..71bb93c 100644 --- a/src/server.ts +++ b/src/server.ts @@ -59,8 +59,7 @@ const app = express(); Sentry.init({ integrations: [ // Enable HTTP calls tracing. - // XXX: OSCI-5419 - new Sentry.Integrations.Http({ tracing: false }), + new Sentry.Integrations.Http(), // Enable Express.js middleware tracing. new Sentry.Integrations.Express({ app }), // Automatically instrument Node.js libraries and frameworks. @@ -74,8 +73,12 @@ Sentry.init({ * transactions are isolated across requests. */ app.use(Sentry.Handlers.requestHandler()); +/* + * FIXME: Disabled for now. See OSCI-5419 and the upstream issue: + * https://github.com/getsentry/sentry-javascript/issues/8654 + */ // TracingHandler creates a trace for every incoming request. -app.use(Sentry.Handlers.tracingHandler()); +// app.use(Sentry.Handlers.tracingHandler()); app.use(cors()); if (app.get('env') === 'development') {