Home
last modified time | relevance | path

Searched refs:spanBuilder (Results 1 – 23 of 23) sorted by relevance

/external/opencensus-java/api/src/test/java/io/opencensus/trace/
DSpanBuilderTest.java41 @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 …]
DTracerTest.java41 @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/
DZipkinExporterHandler.java113 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/
DTracerImplTest.java52 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/
DTraceProtoUtils.java111 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/
DZPagesTester.java52 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/
DQuickStart.java80 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/
DStackdriverV2ExporterHandler.java184 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/
DHelloWorldClient.java80 SpanBuilder spanBuilder = in greet() local
81 tracer.spanBuilder("client").setRecordEvents(true).setSampler(Samplers.alwaysSample()); in greet()
82 try (Scope scope = spanBuilder.startScopedSpan()) { in greet()
DHelloWorldServer.java62 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/
DPrometheusStatsCollector.java99 .spanBuilder("ExportStatsToPrometheus") in collect()
140 .spanBuilder("DescribeMetricsForPrometheus") in describe()
/external/opencensus-java/exporters/trace/jaeger/src/test/java/io/opencensus/exporter/trace/jaeger/
DJaegerExporterHandlerIntegrationTest.java103 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/
DTraceStrategyImpl.java39 .spanBuilder(spanName) in startScopedSpan()
/external/opencensus-java/examples/src/main/java/io/opencensus/examples/trace/
DMultiSpansScopedTracing.java45 try (Scope ss = tracer.spanBuilder("MyChildSpan").startScopedSpan()) { in doSomeMoreWork()
DMultiSpansContextTracing.java45 Span span = tracer.spanBuilder("MyChildSpan").startSpan(); in doSomeMoreWork()
/external/opencensus-java/contrib/spring/src/main/java/io/opencensus/contrib/spring/aop/
DHandler.java35 Scope scope = tracer.spanBuilder(spanName).startScopedSpan(); in proceed()
/external/opencensus-java/api/src/main/java/io/opencensus/trace/
DTracer.java307 public final SpanBuilder spanBuilder(String spanName) { in spanBuilder() method in Tracer
/external/opencensus-java/benchmarks/src/jmh/java/io/opencensus/benchmarks/trace/
DStartEndSpanBenchmark.java109 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/
DInstanaExporterHandler.java188 tracer.spanBuilder("ExportInstanaTraces").setSampler(probabilitySpampler).startScopedSpan(); in export()
/external/opencensus-java/exporters/stats/stackdriver/src/main/java/io/opencensus/exporter/stats/stackdriver/
DStackdriverExporterWorker.java218 .spanBuilder("ExportStatsToStackdriverMonitoring") in run()
/external/opencensus-java/exporters/trace/jaeger/src/main/java/io/opencensus/exporter/trace/jaeger/
DJaegerExporterHandler.java168 return tracer.spanBuilder(EXPORT_SPAN_NAME).setSampler(lowProbabilitySampler).startScopedSpan(); in newExportScope()
/external/opencensus-java/
DREADME.md82 .spanBuilder("MyChildWorkSpan")
/external/grpc-grpc-java/interop-testing/src/main/java/io/grpc/testing/integration/
DAbstractInteropTest.java1466 Span clientParentSpan = Tracing.getTracer().spanBuilder("Test.interopTest").startSpan(); in censusContextsPropagated()