File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
filter-custom-opa/src/main/java/org/hypertrace/agent/filter/opa/custom Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1919import com .google .auto .service .AutoService ;
2020import org .hypertrace .agent .config .Config .AgentConfig ;
2121import org .hypertrace .agent .config .Config .Reporting ;
22- import org .hypertrace .agent .core .EnvironmentConfig ;
2322import org .hypertrace .agent .core .HypertraceConfig ;
2423import org .hypertrace .agent .filter .FilterRegistry ;
2524import org .hypertrace .agent .filter .api .Filter ;
2928public class CustomOpaLibProvider implements FilterProvider {
3029
3130 public CustomOpaLibProvider () {
32- String property = FilterRegistry .getProviderDisabledPropertyName (CustomOpaLibProvider .class );
3331 // by default disable this provider until HT agent config includes OPA
34- if (EnvironmentConfig .getProperty (property ) == null ) {
32+ if (!HypertraceConfig .get ().getReporting ().getOpa ().getEnabled ().getValue ()) {
33+ String property = FilterRegistry .getProviderDisabledPropertyName (CustomOpaLibProvider .class );
3534 System .setProperty (property , "true" );
3635 }
3736 }
You can’t perform that action at this time.
0 commit comments