예제 #1
0
 private SpanBuilder(string name, SpanBuilderOptions options, ISpanContext remoteParentSpanContext = null, ISpan parent = null)
 {
     this.Name   = name ?? throw new ArgumentNullException(nameof(name));
     this.Parent = parent;
     this.RemoteParentSpanContext = remoteParentSpanContext;
     this.Options = options;
 }
예제 #2
0
        private SpanBuilder(string name, SpanBuilderOptions options, ISpanContext remoteParentSpanContext = null, ISpan parent = null)
        {
            if (name == null)
            {
                throw new ArgumentNullException(nameof(name));
            }

            Name   = name;
            Parent = parent;
            RemoteParentSpanContext = remoteParentSpanContext;
            Options = options;
        }
예제 #3
0
 public Tracer(IRandomGenerator randomGenerator, IStartEndHandler startEndHandler, IClock clock, ITraceConfig traceConfig)
 {
     this.spanBuilderOptions = new SpanBuilderOptions(randomGenerator, startEndHandler, clock, traceConfig);
 }
예제 #4
0
 internal static ISpanBuilder CreateWithRemoteParent(string spanName, ISpanContext remoteParentSpanContext, SpanBuilderOptions options)
 {
     return(new SpanBuilder(spanName, options, remoteParentSpanContext, null));
 }
예제 #5
0
 internal static ISpanBuilder CreateWithParent(string spanName, ISpan parent, SpanBuilderOptions options)
 {
     return(new SpanBuilder(spanName, options, null, parent));
 }