Skip to content

Commit 64bfde3

Browse files
committed
test
1 parent 2640ae1 commit 64bfde3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,7 @@ private Map<String, Object> getTrace() throws Exception {
149149
}
150150

151151
if (validationConfig.getHttpPath().contains("chat")) {
152-
if (context.getTraceId() != null) {
153-
traceFilter += String.format(" AND id = \"%s\"", context.getTraceId());
154-
}
152+
traceFilter = String.format("annotation.aws_local_service = \"%s\" AND annotation.span_name = \"ChatBedrock\"", context.getServiceName());
155153
}
156154
log.info("Trace Filter: {}", traceFilter);
157155
List<TraceSummary> retrieveTraceLists = xrayService.searchTraces(traceFilter);

0 commit comments

Comments
 (0)