@@ -79,7 +79,9 @@ final class DefaultWebClient implements WebClient {
79
79
private static final Mono <ClientResponse > NO_HTTP_CLIENT_RESPONSE_ERROR = Mono .error (
80
80
() -> new IllegalStateException ("The underlying HTTP client completed without emitting a response." ));
81
81
82
- private static final DefaultClientRequestObservationConvention DEFAULT_OBSERVATION_CONVENTION = new DefaultClientRequestObservationConvention ();
82
+ private static final DefaultClientRequestObservationConvention DEFAULT_OBSERVATION_CONVENTION =
83
+ new DefaultClientRequestObservationConvention ();
84
+
83
85
84
86
private final ExchangeFunction exchangeFunction ;
85
87
@@ -119,10 +121,10 @@ final class DefaultWebClient implements WebClient {
119
121
this .uriBuilderFactory = uriBuilderFactory ;
120
122
this .defaultHeaders = defaultHeaders ;
121
123
this .defaultCookies = defaultCookies ;
122
- this .observationRegistry = observationRegistry ;
123
- this .observationConvention = observationConvention ;
124
124
this .defaultRequest = defaultRequest ;
125
125
this .defaultStatusHandlers = initStatusHandlers (statusHandlerMap );
126
+ this .observationRegistry = observationRegistry ;
127
+ this .observationConvention = observationConvention ;
126
128
this .builder = builder ;
127
129
}
128
130
@@ -697,7 +699,7 @@ private <T> Mono<T> applyStatusHandlers(ClientResponse response) {
697
699
private static URI getUriToLog (URI uri ) {
698
700
if (StringUtils .hasText (uri .getQuery ())) {
699
701
try {
700
- uri = new URI (uri .getScheme (), uri .getHost (), uri .getPath (), null );
702
+ uri = new URI (uri .getScheme (), null , uri .getHost (), uri .getPort (), uri . getPath (), null , null );
701
703
}
702
704
catch (URISyntaxException ex ) {
703
705
// ignore
0 commit comments