Home
last modified time | relevance | path

Searched refs:withSpan (Results 1 – 11 of 11) sorted by relevance

/external/opencensus-java/api/src/main/java/io/opencensus/trace/
DTracer.java153 public final Scope withSpan(Span span) { in withSpan() method in Tracer
154 return CurrentSpanUtils.withSpan(Utils.checkNotNull(span, "span"), /* endSpan= */ false); in withSpan()
218 public final Runnable withSpan(Span span, Runnable runnable) { in withSpan() method in Tracer
219 return CurrentSpanUtils.withSpan(span, /* endSpan= */ false, runnable); in withSpan()
283 public final <C> Callable<C> withSpan(Span span, final Callable<C> callable) { in withSpan() method in Tracer
284 return CurrentSpanUtils.withSpan(span, /* endSpan= */ false, callable); in withSpan()
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.java51 static Scope withSpan(Span span, boolean endSpan) { in withSpan() method in CurrentSpanUtils
63 static Runnable withSpan(Span span, boolean endSpan, Runnable runnable) { in withSpan() method in CurrentSpanUtils
75 static <C> Callable<C> withSpan(Span span, boolean endSpan, Callable<C> callable) { in withSpan() method in CurrentSpanUtils
/external/opencensus-java/api/src/test/java/io/opencensus/trace/
DTracerTest.java56 noopTracer.withSpan(null); in withSpan_NullSpan()
62 Scope ws = noopTracer.withSpan(span); in getCurrentSpan_WithSpan()
76 tracer.withSpan( in wrapRunnable()
96 tracer.withSpan( in wrapCallable()
151 Scope ws = tracer.withSpan(span); in startSpanWithParentFromContext()
164 Scope ws = tracer.withSpan(BlankSpan.INSTANCE); in startSpanWithInvalidParentFromContext()
DCurrentSpanUtilsTest.java49 CurrentSpanUtils.withSpan(span, true, runnable).run(); in executeRunnableAndExpectError()
61 CurrentSpanUtils.withSpan(span, true, callable).call(); in executeCallableAndExpectError()
90 Scope ws = CurrentSpanUtils.withSpan(span, false); in withSpan_CloseDetaches()
103 Scope ss = CurrentSpanUtils.withSpan(span, true); in withSpan_CloseDetachesAndEndsSpan()
124 CurrentSpanUtils.withSpan(span, false, runnable).run(); in withSpanRunnable()
140 CurrentSpanUtils.withSpan(span, true, runnable).run(); in withSpanRunnable_EndSpan()
196 assertThat(CurrentSpanUtils.withSpan(span, false, callable).call()).isEqualTo(ret); in withSpanCallable()
214 assertThat(CurrentSpanUtils.withSpan(span, true, callable).call()).isEqualTo(ret); in withSpanCallable_EndSpan()
/external/opencensus-java/examples/src/main/java/io/opencensus/examples/trace/
DMultiSpansContextTracing.java46 try (Scope ws = tracer.withSpan(span)) { in doSomeMoreWork()
80 try (Scope ws = tracer.withSpan(span)) { in main()
/external/opencensus-java/exporters/stats/prometheus/src/main/java/io/opencensus/exporter/stats/prometheus/
DPrometheusStatsCollector.java104 Scope scope = tracer.withSpan(span); in collect()
145 Scope scope = tracer.withSpan(span); in describe()
/external/opencensus-java/contrib/log_correlation/log4j2/src/test/java/io/opencensus/contrib/logcorrelation/log4j2/
DOpenCensusTraceContextDataInjectorTest.java161 Scope scope = tracer.withSpan(new TestSpan(spanContext)); in rawContextDataWithTracingData()
194 Scope scope = tracer.withSpan(new TestSpan(spanContext)); in rawContextDataWithoutTracingData()
DAbstractOpenCensusLog4jLogCorrelationTest.java90 Scope scope = tracer.withSpan(new TestSpan(spanContext)); in logWithSpan()
/external/opencensus-java/exporters/stats/stackdriver/src/main/java/io/opencensus/exporter/stats/stackdriver/
DStackdriverExporterWorker.java222 Scope scope = tracer.withSpan(span); in run()
/external/opencensus-java/contrib/log_correlation/stackdriver/src/test/java/io/opencensus/contrib/logcorrelation/stackdriver/
DOpenCensusTraceLoggingEnhancerTest.java180 Scope scope = tracer.withSpan(span); in getEnhancedLogEntry()