We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 325d88b commit a1cc80aCopy full SHA for a1cc80a
dd-java-agent/appsec/src/main/java/com/datadog/appsec/powerwaf/PowerWAFModule.java
@@ -254,6 +254,16 @@ private boolean initializeNewWafCtx(
254
if (initReport != null && initReport.rulesetVersion != null) {
255
currentRulesVersion = initReport.rulesetVersion;
256
}
257
+ if (initReport != null
258
+ && initReport.getErrors() != null
259
+ && !initReport.getErrors().isEmpty()
260
+ && initReport.getErrors().values().stream().mapToLong(List::size).sum() > 0) {
261
+ for (int i = 0;
262
+ i < initReport.getErrors().values().stream().mapToLong(List::size).sum();
263
+ i++) {
264
+ WafMetricCollector.get().wafConfigError();
265
+ }
266
267
268
if (initReport != null) {
269
log.info(
0 commit comments