It doesn't look like there is a way to specify a different base filter in the new version of the NestJS/Sentry SDK like in setupNestErrorHandler - which btw, should that be considered deprecated?
{
"query": "query {\n triggerError\n}",
"variables": {},
"errors": [
{
"message": "response.status is not a function",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"triggerError"
]
}
]
}
diff --git a/build/cjs/setup.js b/build/cjs/setup.js
index 119735398bb49a01b1c941045a809edd45b32fdc..b06228c7d71288ef53f140de1890e9e4fefe7477 100644
--- a/build/cjs/setup.js
+++ b/build/cjs/setup.js
@@ -6,6 +6,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
const common = require('@nestjs/common');
const core = require('@nestjs/core');
+const filter = require('@nestjs/core/exceptions/external-exception-filter');
const microservices = require('@nestjs/microservices');
const core$1 = require('@sentry/core');
const utils = require('@sentry/utils');
@@ -47,7 +48,7 @@ common.Injectable()(SentryTracingInterceptor);
/**
* Global filter to handle exceptions and report them to Sentry.
*/
-class SentryGlobalFilter extends core.BaseExceptionFilter {
+class SentryGlobalFilter extends filter.ExternalExceptionFilter {
static __initStatic2() {this.__SENTRY_INTERNAL__ = true;}
/**
Originally posted by @ysuhaas in #12351