/** * Initializes the current thread's trace, erasing any previously accrued open spans. The new trace is {@link * Trace#isObservable observable} iff the given flag is true, or, iff {@code isObservable} is absent, if the {@link * #setSampler configured sampler} returns true. */ public static void initTrace(Optional<Boolean> isObservable, String traceId) { setTrace(createTrace(isObservable, traceId)); }
/** * Initializes the current thread's trace, erasing any previously accrued open spans. The new trace is {@link * Trace#isObservable observable} iff the given flag is true, or, iff {@code isObservable} is absent, if the {@link * #setSampler configured sampler} returns true. */ public static void initTrace(Optional<Boolean> isObservable, String traceId) { setTrace(createTrace(isObservable, traceId)); }