Skip to content

Commit 8344bdb

Browse files
committed
test
1 parent 7dfaff2 commit 8344bdb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

validator/src/main/java/com/amazon/aoc/validators/CWMetricValidator.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,12 @@ public void validate() throws Exception {
9292
maxRetryCount,
9393
() -> {
9494

95+
String httpPath = validationConfig.getHttpPath();
96+
9597
// Special handling for Genesis path - just check if any metrics exists in namespace
9698
// since ADOT will just capture any OTel Metrics emitted from the instrumentation library used
9799
// and convert them into EMF metrics, it's impossible to create a validation template for this.
98-
if (validationConfig.getHttpPath().contains("ai-chat")) {
100+
if (httpPath != null && httpPath.contains("ai-chat")) {
99101
validateAnyMetricExists();
100102
return;
101103
}

0 commit comments

Comments
 (0)