Home
last modified time | relevance | path

Searched refs:childSpan (Results 1 – 2 of 2) sorted by relevance

/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/trace/
DSpanBuilderImplTest.java160 Span childSpan = in startChildSpan() local
162 assertThat(childSpan.getContext().isValid()).isTrue(); in startChildSpan()
163 assertThat(childSpan.getContext().getTraceId()).isEqualTo(rootSpan.getContext().getTraceId()); in startChildSpan()
164 assertThat(((RecordEventsSpanImpl) childSpan).toSpanData().getParentSpanId()) in startChildSpan()
166 assertThat(((RecordEventsSpanImpl) childSpan).toSpanData().getHasRemoteParent()).isFalse(); in startChildSpan()
167 assertThat(((RecordEventsSpanImpl) childSpan).getTimestampConverter()) in startChildSpan()
250 Span childSpan = in startRemoteChildSpan_WithSpecifiedSampler() local
254 assertThat(childSpan.getContext().isValid()).isTrue(); in startRemoteChildSpan_WithSpecifiedSampler()
255 assertThat(childSpan.getContext().getTraceId()).isEqualTo(rootSpan.getContext().getTraceId()); in startRemoteChildSpan_WithSpecifiedSampler()
256 assertThat(childSpan.getContext().getTraceOptions().isSampled()).isFalse(); in startRemoteChildSpan_WithSpecifiedSampler()
[all …]
/external/opencensus-java/examples/src/main/java/io/opencensus/examples/trace/
DMultiSpansTracing.java38 Span childSpan = tracer.spanBuilderWithExplicitParent("MyChildSpan", rootSpan).startSpan(); in doWork() local
39 childSpan.addAnnotation("Annotation to the child Span"); in doWork()
40 childSpan.end(); in doWork()