Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
19 lines
737 B
Plaintext
19 lines
737 B
Plaintext
interface SentryTrpcMiddlewareOptions {
|
|
/** Whether to include procedure inputs in reported events. Defaults to `false`. */
|
|
attachRpcInput?: boolean;
|
|
forceTransaction?: boolean;
|
|
}
|
|
export interface SentryTrpcMiddlewareArguments<T> {
|
|
path?: unknown;
|
|
type?: unknown;
|
|
next: () => T;
|
|
rawInput?: unknown;
|
|
getRawInput?: () => Promise<unknown>;
|
|
}
|
|
type SentryTrpcMiddleware<T> = T extends Promise<unknown> ? T : Promise<T>;
|
|
/**
|
|
* Sentry tRPC middleware that captures errors and creates spans for tRPC procedures.
|
|
*/
|
|
export declare function trpcMiddleware(options?: SentryTrpcMiddlewareOptions): <T>(opts: SentryTrpcMiddlewareArguments<T>) => SentryTrpcMiddleware<T>;
|
|
export {};
|
|
//# sourceMappingURL=trpc.d.ts.map |