File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,24 @@ import { isExpectedError } from './helpers';
88/**
99 * Global filter to handle exceptions and report them to Sentry in nestjs microservice applications.
1010 * Extends the standard SentryGlobalFilter with RPC exception handling.
11+ *
12+ * @example
13+ * ```
14+ * import { Module } from '@nestjs/common';
15+ * import { APP_FILTER } from '@nestjs/core';
16+ * import { SentryRpcFilter } from '@sentry/nestjs/microservices';
17+ *
18+ * @Module ({
19+ * providers: [
20+ * // For microservice applications this filter replaces SentryGlobalFilter
21+ * {
22+ * provide: APP_FILTER,
23+ * useClass: SentryRpcFilter,
24+ * },
25+ * ],
26+ * })
27+ * export class AppModule {}
28+ * ```
1129 */
1230class SentryRpcFilter extends SentryGlobalFilter {
1331 private readonly _rpcLogger : Logger ;
You can’t perform that action at this time.
0 commit comments