private static void AddClientSendReceiveAnnotations(Span span, DateTime startTime, TimeSpan timeOffset)
        {
            var endtime = startTime + timeOffset;

            span.AddAnnotation(new ZipkinAnnotation(startTime, zipkinCoreConstants.CLIENT_SEND));
            span.AddAnnotation(new ZipkinAnnotation(endtime, zipkinCoreConstants.CLIENT_RECV));
            span.SetAsComplete(endtime);
        }
Пример #2
0
 public void Visit(ClientRecv clientRecv)
 {
     AddTimestampedAnnotation(zipkinCoreConstants.CLIENT_RECV);
     _span.SetAsComplete(_record.Timestamp);
 }