Skip to content

Commit 845ef09

Browse files
committed
test
1 parent 94ec7cb commit 845ef09

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

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

151151
if (validationConfig.getHttpPath().contains("chat")) {
152-
traceFilter = String.format("service(\"%s\")", context.getServiceName());
153-
if (context.getBaggage() != null) {
154-
traceFilter += String.format(" AND annotation.session_id = \"%s\"", context.getBaggage());
155-
}
152+
traceFilter = String.format("service(\"%s\") AND annotation.\"aws.service.type\" = \"gen_ai_agent\"", context.getServiceName());
156153
}
157154
log.info("Trace Filter: {}", traceFilter);
158155
List<TraceSummary> retrieveTraceLists = xrayService.searchTraces(traceFilter);

0 commit comments

Comments
 (0)