Beispiel #1
0
        public ISpanBuilder BuildSpanIgnoreActive(string operationName)
        {
            ISpanBuilder innerSpanBuilder = _innerTracer.BuildSpan(operationName);
            ISpanBuilder spanBuilder      = new AdvancedSpanBuilder(innerSpanBuilder, _traceContext);

            return(spanBuilder);
        }
Beispiel #2
0
        public ISpanBuilder BuildSpan(string operationName)
        {
            ISpanBuilder innerSpanBuilder = _innerTracer.BuildSpan(operationName);
            ISpanBuilder spanBuilder      = new AdvancedSpanBuilder(innerSpanBuilder, _traceContext);

            spanBuilder.AsChildOf(_traceContext.CurrentSpan);
            return(spanBuilder);
        }
Beispiel #3
0
        public static ISpan StartNonActive(this ISpanBuilder spanBuilder)
        {
            AdvancedSpanBuilder advancedSpanBuilder = spanBuilder as AdvancedSpanBuilder;

            ISpan span = advancedSpanBuilder != null
                            ? advancedSpanBuilder.StartNonActive()
                            : spanBuilder.Start();

            return(span);
        }