diff --git a/testing/validator/src/main/java/com/amazon/aoc/services/XRayService.java b/testing/validator/src/main/java/com/amazon/aoc/services/XRayService.java index d6b328b1df..b96ff3332c 100644 --- a/testing/validator/src/main/java/com/amazon/aoc/services/XRayService.java +++ b/testing/validator/src/main/java/com/amazon/aoc/services/XRayService.java @@ -58,8 +58,10 @@ public List searchClientCallTraces(String serviceName) { new GetTraceSummariesRequest() .withStartTime(pastDate) .withEndTime(currentDate) - .withFilterExpression("annotation.aws_local_service = " + serviceName) - .withFilterExpression("annotation.aws_local_service = \"local-root-client-call\"")); + .withFilterExpression( + "annotation.aws_local_service = \"" + + serviceName + + "\" AND annotation.aws_local_service = \"local-root-client-call\"")); return traceSummaryResult.getTraceSummaries(); } }