You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all, spring boot 3 uses apache 5 client.
I want to use
com.amazonaws.xray.proxies.apache.http.HttpClientBuilder and inject it in the HttpComponentsClientHttpRequestFactory and then in the rest template.
Unfortunately it is not possible, because HttpClientBuilder returns the client for the apache v4. Do you plan to move forward with apache5 or what kind of the workaround do you suggest?
The text was updated successfully, but these errors were encountered:
oleksandr-skoryi
changed the title
Spring boot 3, apache 5 client
Spring boot 3, apache 5 client, inconsistency with aws-xray-sdk
Apr 19, 2023
It looks like apache 4.x and 5.x are incompatible.
And unfortunately there is not an abstract interface we can change to that will work with both. According to the migration guide, we will need a rewrite on some key classes.
I'm afraid I do not see a short term easy fix for you. The solution will require making a parallel set of classe(s) for the new Apache version, specifically around TracedHttpClient. It looks like we just need to swap out the imports, but there may be some functional changes too. More investigation is needed.
I have added a work item in our backlog to look into this.
Hi @raftheunis87@oleksandr-skoryi , AWS X-Ray is slowing down the new features/changes support on aws-xray-sdk and recommending our customers to use OpenTelemetry SDK for the auto/manual instrumentations in X-Ray. We're providing more richful features and support with OTel solutions. Any obstacle for you to onboard with OTel SDK in X-Ray? Please let us know. Thanks!
Hi all, spring boot 3 uses apache 5 client.
I want to use
com.amazonaws.xray.proxies.apache.http.HttpClientBuilder and inject it in the HttpComponentsClientHttpRequestFactory and then in the rest template.
Unfortunately it is not possible, because HttpClientBuilder returns the client for the apache v4. Do you plan to move forward with apache5 or what kind of the workaround do you suggest?
The text was updated successfully, but these errors were encountered: