Skip to content

Commit 184d81d

Browse files
feat(Telemetry) dotCMS#32066 : Turn Telemetry on by (dotCMS#32201)
### Proposed Changes * Removing one more missing change. We don't need to add the `ApiMetricWebInterceptor` anymore.
1 parent 4ad6eb9 commit 184d81d

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

dotCMS/src/main/java/com/dotmarketing/filters/InterceptorFilter.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,16 @@
33
import com.dotcms.analytics.track.AnalyticsTrackWebInterceptor;
44
import com.dotcms.business.SystemTableUpdatedKeyEvent;
55
import com.dotcms.ema.EMAWebInterceptor;
6-
import com.dotcms.featureflag.FeatureFlagName;
76
import com.dotcms.filters.interceptor.AbstractWebInterceptorSupportFilter;
87
import com.dotcms.filters.interceptor.WebInterceptorDelegate;
98
import com.dotcms.filters.interceptor.meta.ResponseMetaDataWebInterceptor;
109
import com.dotcms.graphql.GraphqlCacheWebInterceptor;
1110
import com.dotcms.jitsu.EventLogWebInterceptor;
1211
import com.dotcms.prerender.PreRenderSEOWebInterceptor;
1312
import com.dotcms.security.multipart.MultiPartRequestSecurityWebInterceptor;
14-
import com.dotcms.telemetry.collectors.api.ApiMetricWebInterceptor;
1513
import com.dotcms.variant.business.web.CurrentVariantWebInterceptor;
1614
import com.dotmarketing.business.APILocator;
1715
import com.dotmarketing.util.Config;
18-
import io.vavr.Lazy;
1916

2017
import javax.servlet.FilterConfig;
2118
import javax.servlet.ServletException;
@@ -30,12 +27,6 @@
3027
*/
3128
public class InterceptorFilter extends AbstractWebInterceptorSupportFilter {
3229

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-
3930
@Override
4031
public void init(final FilterConfig config) throws ServletException {
4132

@@ -64,9 +55,6 @@ private void addInterceptors(final FilterConfig config) {
6455
delegate.add(new EventLogWebInterceptor());
6556
delegate.add(new CurrentVariantWebInterceptor());
6657
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-
}
7058
APILocator.getLocalSystemEventsAPI().subscribe(SystemTableUpdatedKeyEvent.class, analyticsTrackWebInterceptor);
7159
} // addInterceptors.
7260

0 commit comments

Comments
 (0)