With Spring Boot 2.2.0 the \"httptrace\" Actuator endpoint doesn\'t exist anymore. How can I get this functionality back?
You need to enable httptrace by having following application properties. By default it is disabled
management.trace.http.enabled: true
management.endpoints.web.exposure.include: httptrace
and Requires an HttpTraceRepository
bean. You can use Your own Custom implementation or InMemoryHttpTraceRepository
The functionality has been removed by default in Spring Boot 2.2.0. To fix it, add this configuration to the Spring environment:
management.endpoints.web.exposure.include: httptrace
and provide a HttpTraceRepository
bean like this:
@Configuration
// @Profile("actuator-endpoints") /* if you want: register bean only if profile is set */
public class HttpTraceActuatorConfiguration {
@Bean
public HttpTraceRepository httpTraceRepository() {
return new InMemoryHttpTraceRepository();
}
}
http://localhost:8080/actuator/httptrace works again.