public XTraceReport makeXTraceEvent(StaticPart joinPoint){
  AtomicInteger counter=new AtomicInteger();
  long taskId=XTraceBaggageInterface.getTaskID(counter);
  if (counter.get() > 1) {
    builder.addTags("TracingError");
  }
  long eventId=XTrace.randomId();
  Collection<Long> parentIds=XTraceBaggageInterface.getParentEventIds();
  setXTrace(taskId,eventId,parentIds);
  XTraceBaggageInterface.setParentEventId(eventId);
  return this;
}

public XTraceReport makeXTraceEvent ( StaticPart joinPoint ) { AtomicInteger counter = new AtomicInteger ( ) ; long taskId = XTraceBaggageInterface . getTaskID ( counter ) ; if ( counter . get ( ) > 1 ) { builder . addTags ( "TracingError" ) ; } long eventId = XTrace . randomId ( ) ; Collection < Long > parentIds = XTraceBaggageInterface . getParentEventIds ( ) ; setXTrace ( taskId , eventId , parentIds ) ; XTraceBaggageInterface . setParentEventId ( eventId ) ; return this ; }
turns this report into an x - trace " event " , by adding the current thread ' s parent event ids to the report , generating a random event id for the report , and updating the current thread ' s parent event ids to this report ' s event id
