public static void UndoApply(TraceInfo capturedContext)
        {
            if (capturedContext.span != null)
            {
                PopSpan();

                capturedContext.span.DurationInMicroseconds = TickClock.GetDuration(capturedContext.span.DurationInMicroseconds.Value);

                ZipkinConfig.Record(capturedContext.span);
            }
        }
示例#2
0
        public void Dispose()
        {
            if (Span != null)
            {
                Span.DurationInMicroseconds = TickClock.GetDuration(_start);

                TraceContextPropagation.PopSpan();

                ZipkinConfig.Record(Span);

                Span = null;
            }
        }