File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
powertools-e2e-tests/src/test/java/software/amazon/lambda/powertools/testutils/tracing Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -109,13 +109,15 @@ private Trace getTrace(List<String> traceIds) {
109109 if (!tracesResponse .hasTraces ()) {
110110 throw new TraceNotFoundException (String .format ("No trace found for traceIds %s" , traceIds ));
111111 }
112+
112113 Trace traceRes = new Trace ();
113114 tracesResponse .traces ().forEach (trace -> {
114115 if (trace .hasSegments ()) {
115116 trace .segments ().forEach (segment -> {
116117 try {
117118 SegmentDocument document = MAPPER .readValue (segment .document (), SegmentDocument .class );
118119 if ("AWS::Lambda::Function" .equals (document .getOrigin ()) && document .hasSubsegments ()) {
120+ LOG .debug ("Populating subsegments for document {}" , MAPPER .writeValueAsString (document ));
119121 getNestedSubSegments (document .getSubsegments (), traceRes , Collections .emptyList ());
120122 } else if ("AWS::Lambda::Function" .equals (document .getOrigin ())) {
121123 LOG .debug (
@@ -133,6 +135,7 @@ private Trace getTrace(List<String> traceIds) {
133135 throw new TraceNotFoundException (String .format ("No segments found in trace %s" , trace .id ()));
134136 }
135137 });
138+
136139 return traceRes ;
137140 }
138141
You can’t perform that action at this time.
0 commit comments