private List<Annotation> createZipkinAnnotations(org.apache.htrace.core.Span hTraceSpan,Endpoint ep){
  List<Annotation> annotationList=new ArrayList<Annotation>();
  annotationList.add(createZipkinAnnotation(zipkinCoreConstants.CLIENT_SEND,hTraceSpan.getStartTimeMillis(),ep,true));
  annotationList.add(createZipkinAnnotation(zipkinCoreConstants.SERVER_RECV,hTraceSpan.getStartTimeMillis(),ep,true));
  for (  TimelineAnnotation ta : hTraceSpan.getTimelineAnnotations()) {
    annotationList.add(createZipkinAnnotation(ta.getMessage(),ta.getTime(),ep,true));
  }
  annotationList.add(createZipkinAnnotation(zipkinCoreConstants.SERVER_SEND,hTraceSpan.getStopTimeMillis(),ep,false));
  annotationList.add(createZipkinAnnotation(zipkinCoreConstants.CLIENT_RECV,hTraceSpan.getStopTimeMillis(),ep,false));
  return annotationList;
}

private List < Annotation > createZipkinAnnotations ( org . apache . htrace . core . Span hTraceSpan , Endpoint ep ) { List < Annotation > annotationList = new ArrayList < Annotation > ( ) ; annotationList . add ( createZipkinAnnotation ( zipkinCoreConstants . CLIENT_SEND , hTraceSpan . getStartTimeMillis ( ) , ep , true ) ) ; annotationList . add ( createZipkinAnnotation ( zipkinCoreConstants . SERVER_RECV , hTraceSpan . getStartTimeMillis ( ) , ep , true ) ) ; for ( TimelineAnnotation ta : hTraceSpan . getTimelineAnnotations ( ) ) { annotationList . add ( createZipkinAnnotation ( ta . getMessage ( ) , ta . getTime ( ) , ep , true ) ) ; } annotationList . add ( createZipkinAnnotation ( zipkinCoreConstants . SERVER_SEND , hTraceSpan . getStopTimeMillis ( ) , ep , false ) ) ; annotationList . add ( createZipkinAnnotation ( zipkinCoreConstants . CLIENT_RECV , hTraceSpan . getStopTimeMillis ( ) , ep , false ) ) ; return annotationList ; }
add annotations from the htrace span .
