-
Notifications
You must be signed in to change notification settings - Fork 884
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract HTTP request & response content length from headers #6415
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
@mateuszrzeszutek there is a slight catch here for apache http clients. The instrumentation flows are as follows:
Thus in case of all apache http clients response content length is coming fine because the one that comes is the one delivered to the user back but the request content length headers and attributes are missing because the one submitted by the user is not the actual one that goes in the request. |
…emetry#6415) * Extract HTTP request & response content length from headers * remove unused method * fix camel tests * fix google http client tests * fix HttpUrlConnection tests * fix k8s and jaxrs tests * fix aws tests * actually fix aws tests 🤞 * fix elasticsearch tests * fix ratpack tests * fix spring webflux tests * fix vertx tests * fix reactor netty tests
…emetry#6415) * Extract HTTP request & response content length from headers * remove unused method * fix camel tests * fix google http client tests * fix HttpUrlConnection tests * fix k8s and jaxrs tests * fix aws tests * actually fix aws tests 🤞 * fix elasticsearch tests * fix ratpack tests * fix spring webflux tests * fix vertx tests * fix reactor netty tests
…emetry#6415) * Extract HTTP request & response content length from headers * remove unused method * fix camel tests * fix google http client tests * fix HttpUrlConnection tests * fix k8s and jaxrs tests * fix aws tests * actually fix aws tests 🤞 * fix elasticsearch tests * fix ratpack tests * fix spring webflux tests * fix vertx tests * fix reactor netty tests
... and deprecate the
requestContentLength()
andresponseContentLength()
methods in the getter interface. I figured that almost all instrumentations (except Armeria) get these from the headers anyway, so we might as well keep the API simple and remove them altogether.