com.catchpoint.trace.instrument.integrations.spring.web.SpringWebHelper Maven / Gradle / Ivy
package com.catchpoint.trace.instrument.integrations.spring.web;
import com.catchpoint.trace.common.util.PropertyUtils;
/**
* @author serkan
*/
public final class SpringWebHelper {
private SpringWebHelper() {
}
public static boolean isEnabled() {
Boolean disabled =
PropertyUtils.getBooleanProperty("catchpoint.trace.integrations.spring.disable");
// Disabled flag is explicitly set
if (disabled != null) {
return !disabled;
}
// If disabled flag is not set explicitly for this integration, check on global flag
return !PropertyUtils.getBooleanProperty(
"catchpoint.trace.integrations.disable", false);
}
}