public static TraceSpan CreateTrace() { var trace = new TraceSpan().Create(); AsyncLocalTrace.Value = trace; return(trace); }
public static TraceSpan CreateTrace(string parentSpanId) { var trace = new TraceSpan().Create(parentSpanId); AsyncLocalTrace.Value = trace; return(trace); }
public static void Set(TraceSpan trace) { AsyncLocalTrace.Value = trace; }