Ejemplo n.º 1
0
 public ISpanBuilder BuildSpan(
     string operationName,
     string logKey          = null,
     SpanKind kind          = SpanKind.Internal,
     ISpan parent           = null,
     bool ignoreCurrentSpan = false)
 {
     return(new SpanBuilder(
                this,
                operationName,
                logKey ?? this.CurrentSpan.LogKey ?? LogKeys.Tracing,
                kind,
                parent == null && ignoreCurrentSpan ? null : parent ?? this.CurrentSpan)
            .WithTag(SpanTagKey.SpanKind, kind.ToString())); // pass correlationid as traceid
 }