Skip to content

Commit

Permalink
fix type on http options
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankcorn committed Oct 18, 2023
1 parent 9d839d7 commit 361d805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function captureBody(request: ClientRequest): Promise<string> {

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));

Expand Down

0 comments on commit 361d805

Please sign in to comment.