public void StopSpan(ISpan span) { _spans.TryPop(out _); if (_spans.Count == 0) { ListenerManager.NotifyFinish(this); } }
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(); } } } }
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(); } } } }
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(); } } }
private void Finish() { var finishedSegment = _segment.Finish(); ListenerManager.NotifyFinish(finishedSegment); }