Пример #1
0
        public global::OpenTracing.IScope StartActive(bool activate)
        {
            Span   span  = BuildSpan();
            IScope scope = null;

            if (activate)
            {
                scope = startTimestamp.HasValue ? span.Activate(startTimestamp.Value) : span.Activate();
            }
            else
            {
                scope = new SpanHandle(span);
            }
            return(new Adapters.OTScope(scope));
        }