Skip to content

Commit

Permalink
Remove testing logs (#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
majanjua-amzn authored Aug 9, 2024
1 parent a6e56ea commit a3c137e
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,12 @@ public Subsegment beginSubsegment(AWSXRayRecorder recorder, String name) {
}

TraceHeader traceHeader = LambdaSegmentContext.getTraceHeaderFromEnvironment();
logger.warn("TRACE HEADER IN CODE: " + traceHeader.toString());
Entity entity = getTraceEntity();
if (entity == null) { // First subsegment of a subsegment branch
Segment parentSegment;
// Trace header either takes the structure `Root=...;<extra-data>` or
// `Root=...;Parent=...;Sampled=...;<extra-data>`
if (traceHeader.getRootTraceId() != null && traceHeader.getParentId() != null && traceHeader.getSampled() != null) {
logger.warn("CREATING FACADE SEGMENT");
parentSegment = new FacadeSegment(
recorder,
traceHeader.getRootTraceId(),
Expand Down

0 comments on commit a3c137e

Please sign in to comment.