/// <summary> /// Adds a Span Reference with a FollowsFromRef to parent span. /// If spanContext == null, the option has no effect. /// </summary> /// <param name="spanContext">Parent span context</param> public SpanBuilder FollowsFrom(ISpanContext spanContext) { _references.Add(SpanReference.FollowsFrom(spanContext)); return(this); }
/// <summary> /// Adds a Span Reference with a ChildOfRef to parent span. /// If spanContext == null, the option has no effect. /// </summary> /// <param name="spanContext">Parent span context</param> public SpanBuilder AsChildOf(ISpanContext spanContext) { _references.Add(SpanReference.ChildOf(spanContext)); return(this); }