Skip to content

Commit

Permalink
Disable Sentry tracing handler
Browse files Browse the repository at this point in the history
Reference: OSCI-5419
  • Loading branch information
mgrabovsky committed Jul 28, 2023
1 parent ffccadb commit 2df2b5f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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') {
Expand Down

0 comments on commit 2df2b5f

Please sign in to comment.