Skip to content

Commit 422defc

Browse files
committed
feat(nestjs): Remove SentryTracingInterceptor export
1 parent 4ba17c7 commit 422defc

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

packages/nestjs/src/setup.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ interface ExpressRequest {
3535

3636
/**
3737
* Interceptor to add Sentry tracing capabilities to Nest.js applications.
38-
*
39-
* @deprecated `SentryTracingInterceptor` is deprecated.
40-
* If you are using `@sentry/nestjs` you can safely remove any references to the `SentryTracingInterceptor`.
41-
* If you are using another package migrate to `@sentry/nestjs` and remove the `SentryTracingInterceptor` afterwards.
4238
*/
4339
class SentryTracingInterceptor implements NestInterceptor {
4440
// used to exclude this class from being auto-instrumented
@@ -73,10 +69,7 @@ class SentryTracingInterceptor implements NestInterceptor {
7369
return next.handle();
7470
}
7571
}
76-
// eslint-disable-next-line deprecation/deprecation
7772
Injectable()(SentryTracingInterceptor);
78-
// eslint-disable-next-line deprecation/deprecation
79-
export { SentryTracingInterceptor };
8073

8174
/**
8275
* Global filter to handle exceptions and report them to Sentry.
@@ -179,7 +172,6 @@ class SentryModule {
179172
providers: [
180173
{
181174
provide: APP_INTERCEPTOR,
182-
// eslint-disable-next-line deprecation/deprecation
183175
useClass: SentryTracingInterceptor,
184176
},
185177
],
@@ -191,7 +183,6 @@ Module({
191183
providers: [
192184
{
193185
provide: APP_INTERCEPTOR,
194-
// eslint-disable-next-line deprecation/deprecation
195186
useClass: SentryTracingInterceptor,
196187
},
197188
],

0 commit comments

Comments
 (0)