Home
last modified time | relevance | path

Searched refs:BlankSpan (Results 1 – 13 of 13) sorted by relevance

/external/opencensus-java/api/src/test/java/io/opencensus/trace/
DBlankSpanTest.java32 assertThat(BlankSpan.INSTANCE.getContext()).isEqualTo(SpanContext.INVALID); in hasInvalidContextAndDefaultSpanOptions()
33 assertThat(BlankSpan.INSTANCE.getOptions().isEmpty()).isTrue(); in hasInvalidContextAndDefaultSpanOptions()
47 BlankSpan.INSTANCE.putAttribute( in doNotCrash()
49 BlankSpan.INSTANCE.addAttributes(attributes); in doNotCrash()
50 BlankSpan.INSTANCE.addAttributes(multipleAttributes); in doNotCrash()
51 BlankSpan.INSTANCE.addAnnotation("MyAnnotation"); in doNotCrash()
52 BlankSpan.INSTANCE.addAnnotation("MyAnnotation", attributes); in doNotCrash()
53 BlankSpan.INSTANCE.addAnnotation("MyAnnotation", multipleAttributes); in doNotCrash()
54 BlankSpan.INSTANCE.addAnnotation(Annotation.fromDescription("MyAnnotation")); in doNotCrash()
55 BlankSpan.INSTANCE.addNetworkEvent(NetworkEvent.builder(NetworkEvent.Type.SENT, 1L).build()); in doNotCrash()
[all …]
DTracerTest.java51 assertThat(noopTracer.getCurrentSpan()).isEqualTo(BlankSpan.INSTANCE); in defaultGetCurrentSpan()
61 assertThat(noopTracer.getCurrentSpan()).isSameAs(BlankSpan.INSTANCE); in getCurrentSpan_WithSpan()
68 assertThat(noopTracer.getCurrentSpan()).isSameAs(BlankSpan.INSTANCE); in getCurrentSpan_WithSpan()
74 assertThat(noopTracer.getCurrentSpan()).isSameAs(BlankSpan.INSTANCE); in wrapRunnable()
87 assertThat(noopTracer.getCurrentSpan()).isSameAs(BlankSpan.INSTANCE); in wrapRunnable()
94 assertThat(noopTracer.getCurrentSpan()).isSameAs(BlankSpan.INSTANCE); in wrapCallable()
108 assertThat(noopTracer.getCurrentSpan()).isSameAs(BlankSpan.INSTANCE); in wrapCallable()
118 assertThat(noopTracer.spanBuilder(SPAN_NAME).startSpan()).isSameAs(BlankSpan.INSTANCE); in defaultSpanBuilderWithName()
129 .isSameAs(BlankSpan.INSTANCE); in defaultSpanBuilderWithParentAndName()
140 .isSameAs(BlankSpan.INSTANCE); in defaultSpanBuilderWithRemoteParent_NullParent()
[all …]
DSpanBuilderTest.java52 assertThat(tracer.getCurrentSpan()).isSameAs(BlankSpan.INSTANCE); in startScopedSpan()
60 assertThat(tracer.getCurrentSpan()).isSameAs(BlankSpan.INSTANCE); in startScopedSpan()
65 assertThat(tracer.getCurrentSpan()).isSameAs(BlankSpan.INSTANCE); in startSpanAndRun()
74 assertThat(tracer.getCurrentSpan()).isSameAs(BlankSpan.INSTANCE); in startSpanAndRun()
80 assertThat(tracer.getCurrentSpan()).isSameAs(BlankSpan.INSTANCE); in startSpanAndCall()
92 assertThat(tracer.getCurrentSpan()).isSameAs(BlankSpan.INSTANCE); in startSpanAndCall()
102 assertThat(spanBuilder.startSpan()).isSameAs(BlankSpan.INSTANCE); in doNotCrash_NoopImplementation()
/external/opencensus-java/api/src/main/java/io/opencensus/trace/
DBlankSpan.java32 public final class BlankSpan extends Span { class
38 public static final BlankSpan INSTANCE = new BlankSpan();
40 private BlankSpan() { in BlankSpan() method in BlankSpan
DSpanBuilder.java329 return BlankSpan.INSTANCE; in startSpan()
DTracer.java99 return currentSpan != null ? currentSpan : BlankSpan.INSTANCE; in getCurrentSpan()
/external/opencensus-java/benchmarks/src/jmh/java/io/opencensus/benchmarks/trace/
DRecordTraceEventsBenchmark.java22 import io.opencensus.trace.BlankSpan;
50 private Span linkedSpan = BlankSpan.INSTANCE;
51 private Span span = BlankSpan.INSTANCE;
76 checkState(linkedSpan != BlankSpan.INSTANCE, "Uninitialized linkedSpan"); in doTearDown()
77 checkState(span != BlankSpan.INSTANCE, "Uninitialized span"); in doTearDown()
DStartEndSpanBenchmark.java21 import io.opencensus.trace.BlankSpan;
44 private Span rootSpan = BlankSpan.INSTANCE;
62 checkState(rootSpan != BlankSpan.INSTANCE, "Uninitialized rootSpan"); in doTearDown()
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/trace/
DTracerImplTest.java24 import io.opencensus.trace.BlankSpan;
52 SpanBuilder spanBuilder = tracer.spanBuilderWithExplicitParent(SPAN_NAME, BlankSpan.INSTANCE); in createSpanBuilder()
/external/opencensus-java/contrib/log_correlation/stackdriver/src/test/java/io/opencensus/contrib/logcorrelation/stackdriver/
DOpenCensusTraceLoggingEnhancerTest.java29 import io.opencensus.trace.BlankSpan;
158 BlankSpan.INSTANCE); in enhanceLogEntry_AddBlankSpanToLogEntryWithAllSpans()
/external/grpc-grpc/src/cpp/ext/filters/census/
Dcontext.h44 CensusContext() : span_(::opencensus::trace::Span::BlankSpan()) {} in CensusContext()
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DCensusTracingModule.java35 import io.opencensus.trace.BlankSpan;
246 if (span != BlankSpan.INSTANCE) { in newClientStreamTracer()
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DCensusModulesTest.java69 import io.opencensus.trace.BlankSpan;
733 when(spyClientSpanBuilder.startSpan()).thenReturn(BlankSpan.INSTANCE); in traceHeaders_missingCensusImpl_notPropagateSpanContext()
737 censusTracing.newClientCallTracer(BlankSpan.INSTANCE, method); in traceHeaders_missingCensusImpl_notPropagateSpanContext()
746 when(spyClientSpanBuilder.startSpan()).thenReturn(BlankSpan.INSTANCE); in traceHeaders_clientMissingCensusImpl_preservingHeaders()
754 censusTracing.newClientCallTracer(BlankSpan.INSTANCE, method); in traceHeaders_clientMissingCensusImpl_preservingHeaders()