“httptrace” endpoint of Spring Boot Actuator doesn’t exist anymore with Spring Boot 2.2.0

The functionality has been removed by default in Spring Boot 2.2.0.

As a workaround, add this configuration to the Spring environment:

management.endpoints.web.exposure.include: httptrace

and provide an 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.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)