public static void UndoApply(TraceInfo capturedContext) { if (capturedContext.span != null) { PopSpan(); capturedContext.span.DurationInMicroseconds = TickClock.GetDuration(capturedContext.span.DurationInMicroseconds.Value); ZipkinConfig.Record(capturedContext.span); } }
public void Dispose() { if (Span != null) { Span.DurationInMicroseconds = TickClock.GetDuration(_start); TraceContextPropagation.PopSpan(); ZipkinConfig.Record(Span); Span = null; } }