We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0b636b commit c88499fCopy full SHA for c88499f
packages/node/src/handlers.ts
@@ -242,14 +242,16 @@ export function parseRequest(
242
return event;
243
}
244
245
+export type RequestHandlerOptions = ParseRequestOptions & {
246
+ flushTimeout?: number;
247
+};
248
+
249
/**
250
* Express compatible request handler.
251
* @see Exposed as `Handlers.requestHandler`
252
*/
253
export function requestHandler(
- options?: ParseRequestOptions & {
- flushTimeout?: number;
- },
254
+ options?: RequestHandlerOptions,
255
): (req: http.IncomingMessage, res: http.ServerResponse, next: (error?: any) => void) => void {
256
return function sentryRequestMiddleware(
257
req: http.IncomingMessage,
0 commit comments