diff --git a/src/http.ts b/src/http.ts index 6cd8a93..2a59d97 100644 --- a/src/http.ts +++ b/src/http.ts @@ -29,7 +29,7 @@ function captureBody(request: ClientRequest): Promise { export function betterHttpInstrumentation (options: BetterHttpInstrumentationOptions) { return { - requestHook (span: Span, request: ClientRequest | IncomingHttpHeaders) { + requestHook (span: Span, request: ClientRequest | IncomingMessage) { if (request instanceof ClientRequest) { const plugin = options.plugins.find(plugin => plugin.shouldParseRequest && plugin.shouldParseRequest(request));