private static Annotation createZipkinAnnotation(String value,long time,Endpoint ep,boolean sendRequest){
  Annotation annotation=new Annotation();
  annotation.setHost(ep);
  if (sendRequest) {
    annotation.setTimestamp(time * 1000);
  }
 else {
    annotation.setTimestamp(time * 1000);
  }
  annotation.setValue(value);
  return annotation;
}

private static Annotation createZipkinAnnotation ( String value , long time , Endpoint ep , boolean sendRequest ) { Annotation annotation = new Annotation ( ) ; annotation . setHost ( ep ) ; if ( sendRequest ) { annotation . setTimestamp ( time * 1000 ) ; } else { annotation . setTimestamp ( time * 1000 ) ; } annotation . setValue ( value ) ; return annotation ; }
create an annotation with the correct times and endpoint .
