コード例 #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;
 }