Searched refs:BlankSpan (Results 1 – 13 of 13) sorted by relevance
32 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 …]
51 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 …]
52 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()
32 public final class BlankSpan extends Span { class38 public static final BlankSpan INSTANCE = new BlankSpan();40 private BlankSpan() { in BlankSpan() method in BlankSpan
329 return BlankSpan.INSTANCE; in startSpan()
99 return currentSpan != null ? currentSpan : BlankSpan.INSTANCE; in getCurrentSpan()
22 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()
21 import io.opencensus.trace.BlankSpan;44 private Span rootSpan = BlankSpan.INSTANCE;62 checkState(rootSpan != BlankSpan.INSTANCE, "Uninitialized rootSpan"); in doTearDown()
24 import io.opencensus.trace.BlankSpan;52 SpanBuilder spanBuilder = tracer.spanBuilderWithExplicitParent(SPAN_NAME, BlankSpan.INSTANCE); in createSpanBuilder()
29 import io.opencensus.trace.BlankSpan;158 BlankSpan.INSTANCE); in enhanceLogEntry_AddBlankSpanToLogEntryWithAllSpans()
44 CensusContext() : span_(::opencensus::trace::Span::BlankSpan()) {} in CensusContext()
35 import io.opencensus.trace.BlankSpan;246 if (span != BlankSpan.INSTANCE) { in newClientStreamTracer()
69 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()