sentry typescript stuff
All checks were successful
deploy / deploy (push) Successful in 29s

This commit is contained in:
Lee 2023-10-31 14:24:11 +00:00
parent 4c6a8c80fb
commit 9c5115b9e1

@ -26,13 +26,13 @@ Sentry.init({
analyticsRoute(app);
// The request handler must be the first middleware on the app
app.use(Sentry.Handlers.requestHandler());
app.use(Sentry.Handlers.requestHandler() as express.RequestHandler);
// TracingHandler creates a trace for every incoming request
app.use(Sentry.Handlers.tracingHandler());
// The error handler must be registered before any other error middleware and after all controllers
app.use(Sentry.Handlers.errorHandler());
app.use(Sentry.Handlers.errorHandler() as express.ErrorRequestHandler);
// Optional fallthrough error handler
app.use(function onError(err: any, req: any, res: any, next: any) {