Skip to content

Commit 715270f

Browse files
committed
test
1 parent 31dd65e commit 715270f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ private Map<String, Object> getTrace() throws Exception {
150150

151151
if (validationConfig.getHttpPath().contains("chat")) {
152152
traceFilter = String.format("service(\"%s\")", context.getServiceName());
153+
if (context.getTraceId() != null) {
154+
traceFilter += String.format(" AND id(\"%s\")", context.getTraceId());
155+
}
153156
}
154157
log.info("Trace Filter: {}", traceFilter);
155158
List<TraceSummary> retrieveTraceLists = xrayService.searchTraces(traceFilter);

0 commit comments

Comments
 (0)