Home
last modified time | relevance | path

Searched refs:getCurrentSpan (Results 1 – 25 of 26) sorted by relevance

12

/external/opencensus-java/api/src/test/java/io/opencensus/trace/
DCurrentSpanUtilsTest.java71 assertThat(CurrentSpanUtils.getCurrentSpan()).isNull(); in getCurrentSpan_WhenNoContext()
75 public void getCurrentSpan() { in getCurrentSpan() method in CurrentSpanUtilsTest
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()
92 assertThat(CurrentSpanUtils.getCurrentSpan()).isSameAs(span); in withSpan_CloseDetaches()
96 assertThat(CurrentSpanUtils.getCurrentSpan()).isNull(); in withSpan_CloseDetaches()
102 assertThat(CurrentSpanUtils.getCurrentSpan()).isNull(); in withSpan_CloseDetachesAndEndsSpan()
105 assertThat(CurrentSpanUtils.getCurrentSpan()).isSameAs(span); in withSpan_CloseDetachesAndEndsSpan()
[all …]
DTracerTest.java51 assertThat(noopTracer.getCurrentSpan()).isEqualTo(BlankSpan.INSTANCE); in defaultGetCurrentSpan()
61 assertThat(noopTracer.getCurrentSpan()).isSameAs(BlankSpan.INSTANCE); in getCurrentSpan_WithSpan()
64 assertThat(noopTracer.getCurrentSpan()).isSameAs(span); in getCurrentSpan_WithSpan()
68 assertThat(noopTracer.getCurrentSpan()).isSameAs(BlankSpan.INSTANCE); in getCurrentSpan_WithSpan()
74 assertThat(noopTracer.getCurrentSpan()).isSameAs(BlankSpan.INSTANCE); in wrapRunnable()
81 assertThat(noopTracer.getCurrentSpan()).isSameAs(span); in wrapRunnable()
87 assertThat(noopTracer.getCurrentSpan()).isSameAs(BlankSpan.INSTANCE); in wrapRunnable()
94 assertThat(noopTracer.getCurrentSpan()).isSameAs(BlankSpan.INSTANCE); in wrapCallable()
101 assertThat(noopTracer.getCurrentSpan()).isSameAs(span); in wrapCallable()
108 assertThat(noopTracer.getCurrentSpan()).isSameAs(BlankSpan.INSTANCE); in wrapCallable()
[all …]
DSpanBuilderTest.java52 assertThat(tracer.getCurrentSpan()).isSameAs(BlankSpan.INSTANCE); in startScopedSpan()
55 assertThat(tracer.getCurrentSpan()).isSameAs(span); in startScopedSpan()
60 assertThat(tracer.getCurrentSpan()).isSameAs(BlankSpan.INSTANCE); in startScopedSpan()
65 assertThat(tracer.getCurrentSpan()).isSameAs(BlankSpan.INSTANCE); in startSpanAndRun()
70 assertThat(tracer.getCurrentSpan()).isSameAs(span); in startSpanAndRun()
74 assertThat(tracer.getCurrentSpan()).isSameAs(BlankSpan.INSTANCE); in startSpanAndRun()
80 assertThat(tracer.getCurrentSpan()).isSameAs(BlankSpan.INSTANCE); in startSpanAndCall()
86 assertThat(tracer.getCurrentSpan()).isSameAs(span); in startSpanAndCall()
92 assertThat(tracer.getCurrentSpan()).isSameAs(BlankSpan.INSTANCE); in startSpanAndCall()
/external/opencensus-java/contrib/spring_sleuth_v1x/src/test/java/io/opencensus/contrib/spring/sleuth/v1x/
DOpenCensusSleuthSpanContextHolderTest.java39 assertThat(tracer.getCurrentSpan().getContext().isValid()).isFalse(); in verifyNotTracing()
48 assertThat(OpenCensusSleuthSpanContextHolder.getCurrentSpan()).isEqualTo(sleuthSpan); in testFromSleuthSampled()
49 assertSpanEquals(tracer.getCurrentSpan(), sleuthSpan); in testFromSleuthSampled()
50 assertThat(tracer.getCurrentSpan().getContext().getTraceOptions().isSampled()).isTrue(); in testFromSleuthSampled()
60 assertThat(OpenCensusSleuthSpanContextHolder.getCurrentSpan()).isEqualTo(sleuthSpan); in testFromSleuthUnsampled()
61 assertSpanEquals(tracer.getCurrentSpan(), sleuthSpan); in testFromSleuthUnsampled()
62 assertThat(tracer.getCurrentSpan().getContext().getTraceOptions().isSampled()).isFalse(); in testFromSleuthUnsampled()
72 assertThat(OpenCensusSleuthSpanContextHolder.getCurrentSpan()).isEqualTo(sleuthSpans[i]); in testSpanStackSimple()
73 assertSpanEquals(tracer.getCurrentSpan(), sleuthSpans[i]); in testSpanStackSimple()
77 assertThat(OpenCensusSleuthSpanContextHolder.getCurrentSpan()).isEqualTo(sleuthSpans[i]); in testSpanStackSimple()
[all …]
DOpenCensusSleuthTracerTest.java136 Span original = tracer.getCurrentSpan(); in testSpanStackAndContinue()
140 assertThat(tracer.getCurrentSpan()).isNull(); in testSpanStackAndContinue()
152 Span original = tracer.getCurrentSpan(); in testSpanStackAndCreateAndContinue()
166 assertThat(tracer.getCurrentSpan()).isEqualTo(span); in assertCurrentSpanIs()
167 assertThat(tracer.getCurrentSpan().getSavedSpan()).isEqualTo(span.getSavedSpan()); in assertCurrentSpanIs()
169 assertThat(OpenCensusSleuthSpanContextHolder.getCurrentSpan()).isEqualTo(span); in assertCurrentSpanIs()
170 assertThat(OpenCensusSleuthSpanContextHolder.getCurrentSpan().getSavedSpan()) in assertCurrentSpanIs()
/external/opencensus-java/contrib/spring_sleuth_v1x/src/main/java/io/opencensus/contrib/spring/sleuth/v1x/
DOpenCensusSleuthTracer.java114 span = createChild(getCurrentSpan(), shortenedName); in createSpan()
139 Span current = OpenCensusSleuthSpanContextHolder.getCurrentSpan(); in detach()
168 Span current = OpenCensusSleuthSpanContextHolder.getCurrentSpan(); in close()
272 Span newSpan = createContinuedSpan(span, OpenCensusSleuthSpanContextHolder.getCurrentSpan()); in continueSpan()
287 public Span getCurrentSpan() { in getCurrentSpan() method in OpenCensusSleuthTracer
288 return OpenCensusSleuthSpanContextHolder.getCurrentSpan(); in getCurrentSpan()
298 Span s = getCurrentSpan(); in addTag()
DOpenCensusSleuthSpanContextHolder.java40 static Span getCurrentSpan() { in getCurrentSpan() method in OpenCensusSleuthSpanContextHolder
/external/opencensus-java/examples/src/main/java/io/opencensus/examples/trace/
DMultiSpansScopedTracing.java40 tracer.getCurrentSpan().addAnnotation("Annotation to the child Span"); in doSomeOtherWork()
51 tracer.getCurrentSpan().addAnnotation("Annotation to the root Span before child is created."); in doWork()
53 tracer.getCurrentSpan().addAnnotation("Annotation to the root Span after child is ended."); in doWork()
DMultiSpansContextTracing.java40 tracer.getCurrentSpan().addAnnotation("Annotation to the child Span"); in doSomeOtherWork()
53 tracer.getCurrentSpan().addAnnotation("Annotation to the root Span before child is created."); in doWork()
55 tracer.getCurrentSpan().addAnnotation("Annotation to the root Span after child is ended."); in doWork()
/external/opencensus-java/examples/src/main/java/io/opencensus/examples/helloworld/
DQuickStart.java92 tracer.getCurrentSpan().addAnnotation("Start processing video."); in main()
96 tracer.getCurrentSpan().addAnnotation("Finished processing video."); in main()
98 tracer.getCurrentSpan().addAnnotation("Exception thrown when processing video."); in main()
99 tracer.getCurrentSpan().setStatus(Status.UNKNOWN); in main()
/external/opencensus-java/api/src/main/java/io/opencensus/trace/
DTracer.java97 public final Span getCurrentSpan() { in getCurrentSpan() method in Tracer
98 Span currentSpan = CurrentSpanUtils.getCurrentSpan(); in getCurrentSpan()
308 return spanBuilderWithExplicitParent(spanName, CurrentSpanUtils.getCurrentSpan()); in spanBuilder()
DCurrentSpanUtils.java36 static Span getCurrentSpan() { in getCurrentSpan() method in CurrentSpanUtils
/external/opencensus-java/exporters/trace/jaeger/src/test/java/io/opencensus/exporter/trace/jaeger/
DJaegerExporterHandlerIntegrationTest.java109 tracer.getCurrentSpan().addAnnotation(START_PROCESSING_VIDEO); in exportToJaeger()
111 tracer.getCurrentSpan().putAttribute("foo", AttributeValue.stringAttributeValue("bar")); in exportToJaeger()
112 tracer.getCurrentSpan().addAnnotation(FINISHED_PROCESSING_VIDEO); in exportToJaeger()
114 tracer.getCurrentSpan().addAnnotation("Exception thrown when processing video."); in exportToJaeger()
115 tracer.getCurrentSpan().setStatus(Status.UNKNOWN); in exportToJaeger()
/external/opencensus-java/examples/src/main/java/io/opencensus/examples/grpc/helloworld/
DHelloWorldClient.java83 tracer.getCurrentSpan().addAnnotation("Saying Hello to Server."); in greet()
85 tracer.getCurrentSpan().addAnnotation("Received response from Server."); in greet()
88 .getCurrentSpan() in greet()
DHelloWorldServer.java68 Span span = tracer.getCurrentSpan(); in performWork()
80 Span span = tracer.getCurrentSpan(); in sleepFor()
159 Span span = tracer.getCurrentSpan(); in sayHello()
/external/opencensus-java/contrib/spring/src/main/java/io/opencensus/contrib/spring/aop/
DHandler.java38 tracer.getCurrentSpan().addAnnotation(annotation); in proceed()
50 Span span = tracer.getCurrentSpan(); in proceed()
/external/opencensus-java/examples/src/main/java/io/opencensus/examples/zpages/
DZPagesTester.java56 tracer.getCurrentSpan().addAnnotation("Starts recording."); in recordExampleData()
99 tracer.getCurrentSpan().addAnnotation("Finish recording."); in recordExampleData()
/external/opencensus-java/checker-framework/stubs/
Dorg-springframework-cloud-sleuth.astub14 @Nullable Span getCurrentSpan();
/external/opencensus-java/contrib/agent/src/main/java/io/opencensus/contrib/agent/instrumentation/
DTraceStrategyImpl.java51 .getCurrentSpan() in endScope()
/external/opencensus-java/exporters/trace/instana/src/main/java/io/opencensus/exporter/trace/instana/
DInstanaExporterHandler.java204 .getCurrentSpan() in export()
210 .getCurrentSpan() in export()
/external/opencensus-java/exporters/stats/stackdriver/src/main/java/io/opencensus/exporter/stats/stackdriver/
DStackdriverExporterWorker.java130 Span span = tracer.getCurrentSpan(); in registerView()
187 Span span = tracer.getCurrentSpan(); in export()
/external/opencensus-java/contrib/zpages/src/main/java/io/opencensus/contrib/zpages/
DZPageHttpHandler.java59 .getCurrentSpan() in handle()
DTracezZPageHandler.java206 .getCurrentSpan() in emitHtmlBody()
287 .getCurrentSpan() in emitSpans()
/external/opencensus-java/
DREADME.md87 tracer.getCurrentSpan().addAnnotation("Finished initial work");
94 tracer.getCurrentSpan().addAnnotation("Important.");
100 tracer.getCurrentSpan().addAnnotation("More important.");
/external/opencensus-java/exporters/trace/zipkin/src/main/java/io/opencensus/exporter/trace/zipkin/
DZipkinExporterHandler.java205 .getCurrentSpan() in export()

12