public void OnStart(SpanBase span) { if (span.Options.HasFlag(SpanOptions.RECORD_EVENTS) && _enqueueEventForNonSampledSpans) { _eventQueue.Enqueue(new SpanStartEvent(span, _runningSpanStore)); } }
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)); } }
public SpanEndEvent( SpanBase span, ISpanExporter spanExporter, IRunningSpanStore runningSpanStore, ISampledSpanStore sampledSpanStore) { this.span = span; this.runningSpanStore = runningSpanStore; this.spanExporter = spanExporter; this.sampledSpanStore = sampledSpanStore; }
public SpanStartEvent(SpanBase span, IRunningSpanStore activeSpansExporter) { this.span = span; this.activeSpansExporter = activeSpansExporter; }