Пример #1
0
 public void OnStart(SpanBase span)
 {
     if (span.Options.HasFlag(SpanOptions.RECORD_EVENTS) && _enqueueEventForNonSampledSpans)
     {
         _eventQueue.Enqueue(new SpanStartEvent(span, _runningSpanStore));
     }
 }
Пример #2
0
 public void OnEnd(SpanBase span)
 {
     if ((span.Options.HasFlag(SpanOptions.RECORD_EVENTS) && _enqueueEventForNonSampledSpans) ||
         span.Context.TraceOptions.IsSampled)
     {
         _eventQueue.Enqueue(new SpanEndEvent(span, _spanExporter, _runningSpanStore, _sampledSpanStore));
     }
 }
Пример #3
0
 public SpanEndEvent(
     SpanBase span,
     ISpanExporter spanExporter,
     IRunningSpanStore runningSpanStore,
     ISampledSpanStore sampledSpanStore)
 {
     this.span             = span;
     this.runningSpanStore = runningSpanStore;
     this.spanExporter     = spanExporter;
     this.sampledSpanStore = sampledSpanStore;
 }
Пример #4
0
 public SpanStartEvent(SpanBase span, IRunningSpanStore activeSpansExporter)
 {
     this.span = span;
     this.activeSpansExporter = activeSpansExporter;
 }