From 40c2d2d98fc7b3597597495aa166de027e3dcd8b Mon Sep 17 00:00:00 2001 From: Valentin Marchaud Date: Mon, 21 Dec 2020 18:41:32 +0100 Subject: [PATCH] fix: review comment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Gerhard Stöbich --- packages/opentelemetry-instrumentation-http/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opentelemetry-instrumentation-http/src/utils.ts b/packages/opentelemetry-instrumentation-http/src/utils.ts index cd8a3e3c7d..402d003cc3 100644 --- a/packages/opentelemetry-instrumentation-http/src/utils.ts +++ b/packages/opentelemetry-instrumentation-http/src/utils.ts @@ -447,7 +447,7 @@ export const getIncomingRequestAttributes = ( if (userAgent !== undefined) { attributes[HttpAttribute.HTTP_USER_AGENT] = userAgent; } - setResponseContentLengthAttribute(request, attributes); + setRequestContentLengthAttribute(request, attributes); const httpKindAttributes = getAttributesFromHttpKind(httpVersion); return Object.assign(attributes, httpKindAttributes);