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