Пример #1
0
 /// <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);
 }
Пример #2
0
 /// <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);
 }