Skip to content

Commit

Permalink
sentry internals
Browse files Browse the repository at this point in the history
  • Loading branch information
nicohrubec committed Aug 6, 2024
1 parent 3f14f43 commit 0cf6024
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/nestjs/src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ export { SentryTracingInterceptor };
* Global filter to handle exceptions and report them to Sentry.
*/
class SentryGlobalFilter extends BaseExceptionFilter {
public static readonly __SENTRY_INTERNAL__ = true;

/**
* Catches exceptions and reports them to Sentry unless they are expected errors.
*/
Expand All @@ -84,6 +86,8 @@ export { SentryGlobalFilter };
* Service to set up Sentry performance tracing for Nest.js applications.
*/
class SentryService implements OnModuleInit {
public static readonly __SENTRY_INTERNAL__ = true;

/**
* Initializes the Sentry service and registers span attributes.
*/
Expand Down

0 comments on commit 0cf6024

Please sign in to comment.