- Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: bugA general bugA general bug
Milestone
Description
RestTemplate opens the scope when handling requests, whereas RestClient does not.
This will cause the custom ClientHttpRequestInterceptor for RestClient to be unable to access the currently active scope within the intercept method.
spring-framework/spring-web/src/main/java/org/springframework/web/client/RestTemplate.java
Line 896 in 2eff5cb
try (Observation.Scope scope = observation.openScope()){ |
spring-framework/spring-web/src/main/java/org/springframework/web/client/DefaultRestClient.java
Line 541 in 2eff5cb
clientResponse = clientRequest.execute(); |
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: bugA general bugA general bug