public boolean hasSpanWithId(String id){
  TraceState ts=traceState.get();
  if (ts != null) {
    String currentId=ts.peekId();
    if (log.isLoggable(Level.FINEST)) {
      log.finest("Has span with id = " + id + "? "+ currentId.equals(id));
    }
    return currentId.equals(id);
  }
  return false;
}

public boolean hasSpanWithId ( String id ) { TraceState ts = traceState . get ( ) ; if ( ts != null ) { String currentId = ts . peekId ( ) ; if ( log . isLoggable ( Level . FINEST ) ) { log . finest ( "Has span with id = " + id + "? " + currentId . equals ( id ) ) ; } return currentId . equals ( id ) ; } return false ; }
this method determines whether there is a current span available associated with the supplied id .
