From b082f920ccc52c52612c25a9e6ed69ca55321628 Mon Sep 17 00:00:00 2001 From: Harry Date: Fri, 1 Dec 2023 14:17:07 -0800 Subject: [PATCH] Fix trace validation error follow up fix (#626) --- .../src/main/java/com/amazon/aoc/services/XRayService.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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(); } }