I used to have the following configuration, but as of spring-boot-2.0
the WebRequestTraceFilter
is no longer available.
@Bean
public FilterRegistrationBean filter(WebRequestTraceFilter filter) {
FilterRegistrationBean registration = new FilterRegistrationBean(filter);
registration.setUrlPatterns("subpath/*"));
return registration;
}
What is the proper replacement of the filter above?
In 2.0 tracing is intentionally less flexible as per comment in the below GitHub issue link.
https://github.com/spring-projects/spring-boot/issues/12953
I was able to implement something similar by extending HttpTraceFilter
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With