/external/opencensus-java/api/src/test/java/io/opencensus/trace/ |
D | SpanBuilderTest.java | 41 @Mock private SpanBuilder spanBuilder; field in SpanBuilderTest 47 when(spanBuilder.startSpan()).thenReturn(span); in setUp() 53 Scope scope = spanBuilder.startScopedSpan(); in startScopedSpan() 66 spanBuilder.startSpanAndRun( in startSpanAndRun() 82 spanBuilder.startSpanAndCall( in startSpanAndCall() 97 SpanBuilder spanBuilder = tracer.spanBuilder("MySpanName"); in doNotCrash_NoopImplementation() local 98 spanBuilder.setParentLinks(Collections.<Span>emptyList()); in doNotCrash_NoopImplementation() 99 spanBuilder.setRecordEvents(true); in doNotCrash_NoopImplementation() 100 spanBuilder.setSampler(Samplers.alwaysSample()); in doNotCrash_NoopImplementation() 101 spanBuilder.setSpanKind(Kind.SERVER); in doNotCrash_NoopImplementation() [all …]
|
D | TracerTest.java | 41 @Mock private SpanBuilder spanBuilder; field in TracerTest 113 noopTracer.spanBuilder(null); in spanBuilderWithName_NullName() 118 assertThat(noopTracer.spanBuilder(SPAN_NAME).startSpan()).isSameAs(BlankSpan.INSTANCE); in defaultSpanBuilderWithName() 155 .thenReturn(spanBuilder); in startSpanWithParentFromContext() 156 assertThat(tracer.spanBuilder(SPAN_NAME)).isSameAs(spanBuilder); in startSpanWithParentFromContext() 168 .thenReturn(spanBuilder); in startSpanWithInvalidParentFromContext() 169 assertThat(tracer.spanBuilder(SPAN_NAME)).isSameAs(spanBuilder); in startSpanWithInvalidParentFromContext()
|
/external/opencensus-java/exporters/trace/zipkin/src/main/java/io/opencensus/exporter/trace/zipkin/ |
D | ZipkinExporterHandler.java | 113 Span.Builder spanBuilder = in generateSpan() local 124 spanBuilder.parentId(spanData.getParentSpanId().toLowerBase16()); in generateSpan() 129 spanBuilder.putTag(label.getKey(), attributeValueToString(label.getValue())); in generateSpan() 133 spanBuilder.putTag(STATUS_CODE, status.getCanonicalCode().toString()); in generateSpan() 135 spanBuilder.putTag(STATUS_DESCRIPTION, status.getDescription()); in generateSpan() 140 spanBuilder.addAnnotation( in generateSpan() 146 spanBuilder.addAnnotation( in generateSpan() 150 return spanBuilder.build(); in generateSpan() 195 tracer.spanBuilder("SendZipkinSpans").setSampler(probabilitySampler).startScopedSpan(); in export()
|
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/trace/ |
D | TracerImplTest.java | 52 SpanBuilder spanBuilder = tracer.spanBuilderWithExplicitParent(SPAN_NAME, BlankSpan.INSTANCE); in createSpanBuilder() local 53 assertThat(spanBuilder).isInstanceOf(SpanBuilderImpl.class); in createSpanBuilder() 58 SpanBuilder spanBuilder = tracer.spanBuilderWithRemoteParent(SPAN_NAME, SpanContext.INVALID); in createSpanBuilderWithRemoteParet() local 59 assertThat(spanBuilder).isInstanceOf(SpanBuilderImpl.class); in createSpanBuilderWithRemoteParet()
|
/external/opencensus-java/exporters/trace/ocagent/src/main/java/io/opencensus/exporter/trace/ocagent/ |
D | TraceProtoUtils.java | 111 Span.Builder spanBuilder = in toSpanProto() local 125 spanBuilder.setKind(toSpanKindProto(kind)); in toSpanProto() 130 spanBuilder.setStatus(toStatusProto(status)); in toSpanProto() 135 spanBuilder.setEndTime(toTimestampProto(end)); in toSpanProto() 140 spanBuilder.setChildSpanCount(UInt32Value.newBuilder().setValue(childSpanCount).build()); in toSpanProto() 145 spanBuilder.setSameProcessAsParentSpan(BoolValue.of(!hasRemoteParent)); in toSpanProto() 150 spanBuilder.setParentSpanId(toByteString(parentSpanId.getBytes())); in toSpanProto() 153 return spanBuilder.build(); in toSpanProto()
|
/external/opencensus-java/examples/src/main/java/io/opencensus/examples/zpages/ |
D | ZPagesTester.java | 52 SpanBuilder spanBuilder = in recordExampleData() local 53 tracer.spanBuilder(SPAN_NAME).setRecordEvents(true).setSampler(Samplers.alwaysSample()); in recordExampleData() 55 try (Scope scope = spanBuilder.startScopedSpan()) { in recordExampleData()
|
/external/opencensus-java/examples/src/main/java/io/opencensus/examples/helloworld/ |
D | QuickStart.java | 80 SpanBuilder spanBuilder = in main() local 82 .spanBuilder("my.org/ProcessVideo") in main() 91 Scope scopedSpan = spanBuilder.startScopedSpan()) { in main()
|
/external/opencensus-java/exporters/trace/stackdriver/src/main/java/io/opencensus/exporter/trace/stackdriver/ |
D | StackdriverV2ExporterHandler.java | 184 Span.Builder spanBuilder = in generateSpan() local 196 spanBuilder.setStatus(toStatusProto(status)); in generateSpan() 200 spanBuilder.setEndTime(toTimestampProto(end)); in generateSpan() 202 spanBuilder.setLinks(toLinksProto(spanData.getLinks())); in generateSpan() 205 spanBuilder.setChildSpanCount(Int32Value.newBuilder().setValue(childSpanCount).build()); in generateSpan() 208 spanBuilder.setParentSpanId(spanData.getParentSpanId().toLowerBase16()); in generateSpan() 211 return spanBuilder.build(); in generateSpan() 485 .spanBuilder("ExportStackdriverTraces") in export()
|
/external/opencensus-java/examples/src/main/java/io/opencensus/examples/grpc/helloworld/ |
D | HelloWorldClient.java | 80 SpanBuilder spanBuilder = in greet() local 81 tracer.spanBuilder("client").setRecordEvents(true).setSampler(Samplers.alwaysSample()); in greet() 82 try (Scope scope = spanBuilder.startScopedSpan()) { in greet()
|
D | HelloWorldServer.java | 62 SpanBuilder spanBuilder = in performWork() local 67 try (Scope scope = spanBuilder.startScopedSpan()) { in performWork()
|
/external/opencensus-java/exporters/stats/prometheus/src/main/java/io/opencensus/exporter/stats/prometheus/ |
D | PrometheusStatsCollector.java | 99 .spanBuilder("ExportStatsToPrometheus") in collect() 140 .spanBuilder("DescribeMetricsForPrometheus") in describe()
|
/external/opencensus-java/exporters/trace/jaeger/src/test/java/io/opencensus/exporter/trace/jaeger/ |
D | JaegerExporterHandlerIntegrationTest.java | 103 SpanBuilder spanBuilder = in exportToJaeger() local 104 tracer.spanBuilder(SPAN_NAME).setRecordEvents(true).setSampler(Samplers.alwaysSample()); in exportToJaeger() 107 Scope scopedSpan = spanBuilder.startScopedSpan(); in exportToJaeger()
|
/external/opencensus-java/contrib/agent/src/main/java/io/opencensus/contrib/agent/instrumentation/ |
D | TraceStrategyImpl.java | 39 .spanBuilder(spanName) in startScopedSpan()
|
/external/opencensus-java/examples/src/main/java/io/opencensus/examples/trace/ |
D | MultiSpansScopedTracing.java | 45 try (Scope ss = tracer.spanBuilder("MyChildSpan").startScopedSpan()) { in doSomeMoreWork()
|
D | MultiSpansContextTracing.java | 45 Span span = tracer.spanBuilder("MyChildSpan").startSpan(); in doSomeMoreWork()
|
/external/opencensus-java/contrib/spring/src/main/java/io/opencensus/contrib/spring/aop/ |
D | Handler.java | 35 Scope scope = tracer.spanBuilder(spanName).startScopedSpan(); in proceed()
|
/external/opencensus-java/api/src/main/java/io/opencensus/trace/ |
D | Tracer.java | 307 public final SpanBuilder spanBuilder(String spanName) { in spanBuilder() method in Tracer
|
/external/opencensus-java/benchmarks/src/jmh/java/io/opencensus/benchmarks/trace/ |
D | StartEndSpanBenchmark.java | 109 Span span = data.tracer.spanBuilder(SPAN_NAME).setSampler(Samplers.alwaysSample()).startSpan(); in startEndSampledRootSpan()
|
/external/opencensus-java/exporters/trace/instana/src/main/java/io/opencensus/exporter/trace/instana/ |
D | InstanaExporterHandler.java | 188 tracer.spanBuilder("ExportInstanaTraces").setSampler(probabilitySpampler).startScopedSpan(); in export()
|
/external/opencensus-java/exporters/stats/stackdriver/src/main/java/io/opencensus/exporter/stats/stackdriver/ |
D | StackdriverExporterWorker.java | 218 .spanBuilder("ExportStatsToStackdriverMonitoring") in run()
|
/external/opencensus-java/exporters/trace/jaeger/src/main/java/io/opencensus/exporter/trace/jaeger/ |
D | JaegerExporterHandler.java | 168 return tracer.spanBuilder(EXPORT_SPAN_NAME).setSampler(lowProbabilitySampler).startScopedSpan(); in newExportScope()
|
/external/opencensus-java/ |
D | README.md | 82 .spanBuilder("MyChildWorkSpan")
|
/external/grpc-grpc-java/interop-testing/src/main/java/io/grpc/testing/integration/ |
D | AbstractInteropTest.java | 1466 Span clientParentSpan = Tracing.getTracer().spanBuilder("Test.interopTest").startSpan(); in censusContextsPropagated()
|