Home
last modified time | relevance | path

Searched refs:CurrentSpanUtils (Results 1 – 4 of 4) sorted by relevance

/external/opencensus-java/api/src/test/java/io/opencensus/trace/
DCurrentSpanUtilsTest.java49 CurrentSpanUtils.withSpan(span, true, runnable).run(); in executeRunnableAndExpectError()
61 CurrentSpanUtils.withSpan(span, true, callable).call(); in executeCallableAndExpectError()
71 assertThat(CurrentSpanUtils.getCurrentSpan()).isNull(); in getCurrentSpan_WhenNoContext()
76 assertThat(CurrentSpanUtils.getCurrentSpan()).isNull(); in getCurrentSpan()
80 assertThat(CurrentSpanUtils.getCurrentSpan()).isSameAs(span); in getCurrentSpan()
84 assertThat(CurrentSpanUtils.getCurrentSpan()).isNull(); in getCurrentSpan()
89 assertThat(CurrentSpanUtils.getCurrentSpan()).isNull(); in withSpan_CloseDetaches()
90 Scope ws = CurrentSpanUtils.withSpan(span, false); in withSpan_CloseDetaches()
92 assertThat(CurrentSpanUtils.getCurrentSpan()).isSameAs(span); in withSpan_CloseDetaches()
96 assertThat(CurrentSpanUtils.getCurrentSpan()).isNull(); in withSpan_CloseDetaches()
[all …]
/external/opencensus-java/api/src/main/java/io/opencensus/trace/
DTracer.java98 Span currentSpan = CurrentSpanUtils.getCurrentSpan(); in getCurrentSpan()
154 return CurrentSpanUtils.withSpan(Utils.checkNotNull(span, "span"), /* endSpan= */ false); in withSpan()
219 return CurrentSpanUtils.withSpan(span, /* endSpan= */ false, runnable); in withSpan()
284 return CurrentSpanUtils.withSpan(span, /* endSpan= */ false, callable); in withSpan()
308 return spanBuilderWithExplicitParent(spanName, CurrentSpanUtils.getCurrentSpan()); in spanBuilder()
DSpanBuilder.java252 return CurrentSpanUtils.withSpan(startSpan(), /* endSpan= */ true); in startScopedSpan()
282 CurrentSpanUtils.withSpan(span, /* endSpan= */ true, runnable).run(); in startSpanAndRun()
314 return CurrentSpanUtils.withSpan(span, /* endSpan= */ true, callable).call(); in startSpanAndCall()
DCurrentSpanUtils.java26 final class CurrentSpanUtils { class
28 private CurrentSpanUtils() {} in CurrentSpanUtils() method in CurrentSpanUtils