@sentry/node 7.109.0 → 7.110.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/async/domain.js +2 -0
- package/cjs/async/domain.js.map +1 -1
- package/cjs/async/hooks.js +4 -0
- package/cjs/async/hooks.js.map +1 -1
- package/cjs/handlers.js +15 -56
- package/cjs/handlers.js.map +1 -1
- package/cjs/index.js +2 -0
- package/cjs/index.js.map +1 -1
- package/cjs/integrations/anr/worker-script.js +2 -2
- package/cjs/integrations/http.js +1 -0
- package/cjs/integrations/http.js.map +1 -1
- package/cjs/trpc.js +74 -0
- package/cjs/trpc.js.map +1 -0
- package/esm/async/domain.js +2 -0
- package/esm/async/domain.js.map +1 -1
- package/esm/async/hooks.js +4 -0
- package/esm/async/hooks.js.map +1 -1
- package/esm/handlers.js +16 -57
- package/esm/handlers.js.map +1 -1
- package/esm/index.js +1 -0
- package/esm/index.js.map +1 -1
- package/esm/integrations/anr/worker-script.js +2 -2
- package/esm/integrations/http.js +1 -0
- package/esm/integrations/http.js.map +1 -1
- package/esm/trpc.js +69 -0
- package/esm/trpc.js.map +1 -0
- package/package.json +5 -5
- package/types/async/domain.d.ts.map +1 -1
- package/types/async/hooks.d.ts.map +1 -1
- package/types/handlers.d.ts +13 -11
- package/types/handlers.d.ts.map +1 -1
- package/types/index.d.ts +1 -0
- package/types/index.d.ts.map +1 -1
- package/types/integrations/http.d.ts.map +1 -1
- package/types/trpc.d.ts +19 -0
- package/types/trpc.d.ts.map +1 -0
- package/types-ts3.8/handlers.d.ts +13 -11
- package/types-ts3.8/index.d.ts +1 -0
- package/types-ts3.8/trpc.d.ts +19 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
interface SentryTrpcMiddlewareOptions {
|
|
2
|
+
/** Whether to include procedure inputs in reported events. Defaults to `false`. */
|
|
3
|
+
attachRpcInput?: boolean;
|
|
4
|
+
}
|
|
5
|
+
interface TrpcMiddlewareArguments<T> {
|
|
6
|
+
path: string;
|
|
7
|
+
type: string;
|
|
8
|
+
next: () => T;
|
|
9
|
+
rawInput: unknown;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Sentry tRPC middleware that names the handling transaction after the called procedure.
|
|
13
|
+
*
|
|
14
|
+
* Use the Sentry tRPC middleware in combination with the Sentry server integration,
|
|
15
|
+
* e.g. Express Request Handlers or Next.js SDK.
|
|
16
|
+
*/
|
|
17
|
+
export declare function trpcMiddleware(options?: SentryTrpcMiddlewareOptions): <T>({ path, type, next, rawInput }: TrpcMiddlewareArguments<T>) => T;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=trpc.d.ts.map
|