/external/opencensus-java/api/src/test/java/io/opencensus/trace/ |
D | CurrentSpanUtilsTest.java | 71 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 …]
|
D | TracerTest.java | 51 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 …]
|
D | SpanBuilderTest.java | 52 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/ |
D | OpenCensusSleuthSpanContextHolderTest.java | 39 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 …]
|
D | OpenCensusSleuthTracerTest.java | 136 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/examples/src/main/java/io/opencensus/examples/trace/ |
D | MultiSpansScopedTracing.java | 40 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()
|
D | MultiSpansContextTracing.java | 40 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/contrib/spring_sleuth_v1x/src/main/java/io/opencensus/contrib/spring/sleuth/v1x/ |
D | OpenCensusSleuthTracer.java | 114 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()
|
D | OpenCensusSleuthSpanContextHolder.java | 40 static Span getCurrentSpan() { in getCurrentSpan() method in OpenCensusSleuthSpanContextHolder
|
/external/opencensus-java/examples/src/main/java/io/opencensus/examples/helloworld/ |
D | QuickStart.java | 92 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/ |
D | Tracer.java | 97 public final Span getCurrentSpan() { in getCurrentSpan() method in Tracer 98 Span currentSpan = CurrentSpanUtils.getCurrentSpan(); in getCurrentSpan() 308 return spanBuilderWithExplicitParent(spanName, CurrentSpanUtils.getCurrentSpan()); in spanBuilder()
|
D | CurrentSpanUtils.java | 36 static Span getCurrentSpan() { in getCurrentSpan() method in CurrentSpanUtils
|
/external/opencensus-java/contrib/spring/src/main/java/io/opencensus/contrib/spring/aop/ |
D | Handler.java | 38 tracer.getCurrentSpan().addAnnotation(annotation); in proceed() 50 Span span = tracer.getCurrentSpan(); in proceed()
|
/external/opencensus-java/exporters/trace/jaeger/src/test/java/io/opencensus/exporter/trace/jaeger/ |
D | JaegerExporterHandlerIntegrationTest.java | 109 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/ |
D | HelloWorldClient.java | 83 tracer.getCurrentSpan().addAnnotation("Saying Hello to Server."); in greet() 85 tracer.getCurrentSpan().addAnnotation("Received response from Server."); in greet() 88 .getCurrentSpan() in greet()
|
D | HelloWorldServer.java | 68 Span span = tracer.getCurrentSpan(); in performWork() 80 Span span = tracer.getCurrentSpan(); in sleepFor() 159 Span span = tracer.getCurrentSpan(); in sayHello()
|
/external/opencensus-java/examples/src/main/java/io/opencensus/examples/zpages/ |
D | ZPagesTester.java | 56 tracer.getCurrentSpan().addAnnotation("Starts recording."); in recordExampleData() 99 tracer.getCurrentSpan().addAnnotation("Finish recording."); in recordExampleData()
|
/external/opencensus-java/checker-framework/stubs/ |
D | org-springframework-cloud-sleuth.astub | 14 @Nullable Span getCurrentSpan();
|
/external/opencensus-java/contrib/agent/src/main/java/io/opencensus/contrib/agent/instrumentation/ |
D | TraceStrategyImpl.java | 51 .getCurrentSpan() in endScope()
|
/external/opencensus-java/exporters/trace/instana/src/main/java/io/opencensus/exporter/trace/instana/ |
D | InstanaExporterHandler.java | 204 .getCurrentSpan() in export() 210 .getCurrentSpan() in export()
|
/external/opencensus-java/exporters/stats/stackdriver/src/main/java/io/opencensus/exporter/stats/stackdriver/ |
D | StackdriverExporterWorker.java | 130 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/ |
D | ZPageHttpHandler.java | 59 .getCurrentSpan() in handle()
|
D | TracezZPageHandler.java | 206 .getCurrentSpan() in emitHtmlBody() 287 .getCurrentSpan() in emitSpans()
|
/external/opencensus-java/ |
D | README.md | 87 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/ |
D | ZipkinExporterHandler.java | 205 .getCurrentSpan() in export()
|