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; }
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; }
public Tracer(IRandomGenerator randomGenerator, IStartEndHandler startEndHandler, IClock clock, ITraceConfig traceConfig) { this.spanBuilderOptions = new SpanBuilderOptions(randomGenerator, startEndHandler, clock, traceConfig); }
internal static ISpanBuilder CreateWithRemoteParent(string spanName, ISpanContext remoteParentSpanContext, SpanBuilderOptions options) { return(new SpanBuilder(spanName, options, remoteParentSpanContext, null)); }
internal static ISpanBuilder CreateWithParent(string spanName, ISpan parent, SpanBuilderOptions options) { return(new SpanBuilder(spanName, options, null, parent)); }