From c865f1f63a7c43cb95ac646becf05a5c7d40b951 Mon Sep 17 00:00:00 2001 From: Mikko Reinikainen Date: Thu, 24 Oct 2024 22:43:40 +0300 Subject: [PATCH] fix(instrumentation-undici): Fix RequestType - Previously RequestType was accidentally assigned with UndiciResponse while the correct type is UndiciRequest --- plugins/node/instrumentation-undici/src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/node/instrumentation-undici/src/types.ts b/plugins/node/instrumentation-undici/src/types.ts index f26ec117dc..0b56998e6b 100644 --- a/plugins/node/instrumentation-undici/src/types.ts +++ b/plugins/node/instrumentation-undici/src/types.ts @@ -53,7 +53,7 @@ export interface RequestHookFunction { } export interface ResponseHookFunction< - RequestType = UndiciResponse, + RequestType = UndiciRequest, ResponseType = UndiciResponse > { (span: Span, info: { request: RequestType; response: ResponseType }): void;