Пример #1
0
 public void AfterFinished(ITraceSegment traceSegment)
 {
     if (!traceSegment.IsIgnore)
     {
         _dispatcher.Dispatch(traceSegment.Transform());
     }
 }
Пример #2
0
        public void Release(SegmentContext segmentContext)
        {
            if (segmentContext == null)
            {
                return;
            }

            _segmentContextFactory.Release(segmentContext);
            if (segmentContext.Sampled)
            {
                _segmentDispatcher.Dispatch(segmentContext);
            }
        }
Пример #3
0
        public void Release(SegmentContext segmentContext, long endTimeMilliseconds = default)
        {
            if (segmentContext == null)
            {
                return;
            }

            _segmentContextFactory.Release(segmentContext, endTimeMilliseconds);
            if (segmentContext.Sampled)
            {
                _segmentDispatcher.Dispatch(segmentContext);
            }
        }