Skip to content

Request Content-Length not recorded for Apache Http Clients #6747

Open
@anuragagarwal561994

Description

@anuragagarwal561994

Describe the bug
As per the change #6415 the request and the response content lengths are to be recorded for every http clients and servers. But for apache http clients, request content lengths are not getting recorded.

Steps to reproduce
Make a http post request with a body with apache http client instrumentation to validate that http.request_content_length is missing in traces and metrics.

What did you expect to see?
http.request_content_length to be populated with the actual body length.

What did you see instead?
No http.request_content_length being present in traces and metrics.

What version are you using?
1.18.0

Environment
Compiler: Zulu11.58+15-CA (build 11.0.16+8-LTS)
OS: MacOS

Additional context
#6415 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    contribution welcomeRequest makes sense, maintainers probably won't have time, contribution would be welcomeenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions