You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In WebMvcMetricsAutoConfiguration bean webMvcMetricsFilter has condition @ConditionalOnMissingBean.
The signature of the method as follows
public FilterRegistrationBean<WebMvcMetricsFilter> webMvcMetricsFilter
So Spring context is looking for the existing FilterRegistrationBean bean.
In our case we have FilterRegistrationBean from JerseyAutoConfiguration which is loaded first and thus webMvcMetricsFilter is not created and no Web MVC metrics are reported.
The webMvcMetricsFilter should have condition @ConditionalOnMissingFilterBean(WebMvcMetricsFilter.class) I think
The text was updated successfully, but these errors were encountered:
In
WebMvcMetricsAutoConfiguration
beanwebMvcMetricsFilter
has condition@ConditionalOnMissingBean
.The signature of the method as follows
So Spring context is looking for the existing
FilterRegistrationBean
bean.In our case we have
FilterRegistrationBean
fromJerseyAutoConfiguration
which is loaded first and thuswebMvcMetricsFilter
is not created and no Web MVC metrics are reported.The
webMvcMetricsFilter
should have condition@ConditionalOnMissingFilterBean(WebMvcMetricsFilter.class)
I thinkThe text was updated successfully, but these errors were encountered: