|
3 | 3 | import com.dotcms.analytics.track.AnalyticsTrackWebInterceptor; |
4 | 4 | import com.dotcms.business.SystemTableUpdatedKeyEvent; |
5 | 5 | import com.dotcms.ema.EMAWebInterceptor; |
6 | | -import com.dotcms.featureflag.FeatureFlagName; |
7 | 6 | import com.dotcms.filters.interceptor.AbstractWebInterceptorSupportFilter; |
8 | 7 | import com.dotcms.filters.interceptor.WebInterceptorDelegate; |
9 | 8 | import com.dotcms.filters.interceptor.meta.ResponseMetaDataWebInterceptor; |
10 | 9 | import com.dotcms.graphql.GraphqlCacheWebInterceptor; |
11 | 10 | import com.dotcms.jitsu.EventLogWebInterceptor; |
12 | 11 | import com.dotcms.prerender.PreRenderSEOWebInterceptor; |
13 | 12 | import com.dotcms.security.multipart.MultiPartRequestSecurityWebInterceptor; |
14 | | -import com.dotcms.telemetry.collectors.api.ApiMetricWebInterceptor; |
15 | 13 | import com.dotcms.variant.business.web.CurrentVariantWebInterceptor; |
16 | 14 | import com.dotmarketing.business.APILocator; |
17 | 15 | import com.dotmarketing.util.Config; |
18 | | -import io.vavr.Lazy; |
19 | 16 |
|
20 | 17 | import javax.servlet.FilterConfig; |
21 | 18 | import javax.servlet.ServletException; |
|
30 | 27 | */ |
31 | 28 | public class InterceptorFilter extends AbstractWebInterceptorSupportFilter { |
32 | 29 |
|
33 | | - private static final Lazy<Boolean> ENABLE_TELEMETRY_FROM_CORE = Lazy.of(() -> |
34 | | - Config.getBooleanProperty(FeatureFlagName.FEATURE_FLAG_TELEMETRY_CORE_ENABLED, true)); |
35 | | - |
36 | | - private static final Lazy<Boolean> TELEMETRY_API_METRICS_ENABLED = Lazy.of(() -> |
37 | | - Config.getBooleanProperty(FeatureFlagName.TELEMETRY_API_METRICS_ENABLED, true)); |
38 | | - |
39 | 30 | @Override |
40 | 31 | public void init(final FilterConfig config) throws ServletException { |
41 | 32 |
|
@@ -64,9 +55,6 @@ private void addInterceptors(final FilterConfig config) { |
64 | 55 | delegate.add(new EventLogWebInterceptor()); |
65 | 56 | delegate.add(new CurrentVariantWebInterceptor()); |
66 | 57 | delegate.add(analyticsTrackWebInterceptor); |
67 | | - if (Boolean.TRUE.equals(ENABLE_TELEMETRY_FROM_CORE.get()) && Boolean.TRUE.equals(TELEMETRY_API_METRICS_ENABLED.get())) { |
68 | | - delegate.add(new ApiMetricWebInterceptor()); |
69 | | - } |
70 | 58 | APILocator.getLocalSystemEventsAPI().subscribe(SystemTableUpdatedKeyEvent.class, analyticsTrackWebInterceptor); |
71 | 59 | } // addInterceptors. |
72 | 60 |
|
|
0 commit comments