Beispiel #1
0
 public void StopSpan(ISpan span)
 {
     _spans.TryPop(out _);
     if (_spans.Count == 0)
     {
         ListenerManager.NotifyFinish(this);
     }
 }
Beispiel #2
0
 public void StopSpan(ISpan span)
 {
     _stackDepth--;
     if (_stackDepth == 0)
     {
         ListenerManager.NotifyFinish(this);
     }
 }
        private void Finish()
        {
            var finishedSegment = _segment.Finish(IsLimitMechanismWorking());

            if (!_segment.HasRef && _segment.IsSingleSpanSegment)
            {
                if (!_sampler.TrySampling())
                {
                    finishedSegment.IsIgnore = true;
                }
            }

            ListenerManager.NotifyFinish(finishedSegment);
        }
 public void StopSpan(ISpan span, string activityId)
 {
     _spans.TryRemove(activityId, out _);
     if (_spans.Count == 0)
     {
         ListenerManager.NotifyFinish(this);
         foreach (var item in Properties)
         {
             if (item.Value is IDisposable disposable)
             {
                 disposable.Dispose();
             }
         }
     }
 }
Beispiel #5
0
 public void StopSpan(ISpan span)
 {
     _spans.TryPop(out _);
     if (_spans.Count == 0)
     {
         ListenerManager.NotifyFinish(this);
         foreach (var item in Properties)
         {
             if (item.Value is IDisposable disposable)
             {
                 disposable.Dispose();
             }
         }
     }
 }
Beispiel #6
0
        private void Finish()
        {
            var finishedSegment = _segment.Finish(IsLimitMechanismWorking());

            if (!_segment.HasRef && _segment.IsSingleSpanSegment)
            {
                if (!_sampler.Sampled())
                {
                    finishedSegment.IsIgnore = true;
                }
            }

            ListenerManager.NotifyFinish(finishedSegment);

            foreach (var item in Properties)
            {
                if (item.Value is IDisposable disposable)
                {
                    disposable.Dispose();
                }
            }
        }
Beispiel #7
0
        private void Finish()
        {
            var finishedSegment = _segment.Finish();

            ListenerManager.NotifyFinish(finishedSegment);
        }