Home
last modified time | relevance | path

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

12

/external/opencensus-java/api/src/test/java/io/opencensus/trace/
DTraceOptionsTest.java36 assertThat(TraceOptions.builder().setIsSampled(false).build().getOptions()).isEqualTo(0); in getOptions()
37 assertThat(TraceOptions.builder().setIsSampled(true).build().getOptions()).isEqualTo(1); in getOptions()
38 assertThat(TraceOptions.builder().setIsSampled(true).setIsSampled(false).build().getOptions()) in getOptions()
48 assertThat(TraceOptions.builder().setIsSampled(true).build().isSampled()).isTrue(); in isSampled()
76 .setIsSampled(true) in builder_FromOptions()
87 TraceOptions.fromByte(SECOND_BYTE), TraceOptions.builder().setIsSampled(true).build()); in traceOptions_EqualsAndHashCode()
95 assertThat(TraceOptions.builder().setIsSampled(true).build().toString()) in traceOptions_ToString()
DSpanContextTest.java47 TraceOptions.builder().setIsSampled(true).build(),
90 .isEqualTo(TraceOptions.builder().setIsSampled(true).build()); in getTraceOptions()
111 TraceOptions.builder().setIsSampled(false).build(), in spanContext_EqualsAndHashCode()
118 TraceOptions.builder().setIsSampled(true).build(), in spanContext_EqualsAndHashCode()
131 .contains(TraceOptions.builder().setIsSampled(true).build().toString()); in spanContext_ToString()
DSpanTest.java48 TraceOptions.builder().setIsSampled(true).build()); in setUp()
/external/opencensus-java/contrib/log_correlation/stackdriver/src/test/java/io/opencensus/contrib/logcorrelation/stackdriver/
DOpenCensusTraceLoggingEnhancerTest.java69 TraceOptions.builder().setIsSampled(true).build(), in enhanceLogEntry_DoNotAddSampledSpanToLogEntryWithNoSpans()
83 TraceOptions.builder().setIsSampled(true).build(), in enhanceLogEntry_AddSampledSpanToLogEntryWithSampledSpans()
100 TraceOptions.builder().setIsSampled(true).build(), in enhanceLogEntry_AddSampledSpanToLogEntryWithAllSpans()
117 TraceOptions.builder().setIsSampled(false).build(), in enhanceLogEntry_DoNotAddNonSampledSpanToLogEntryWithNoSpans()
131 TraceOptions.builder().setIsSampled(false).build(), in enhanceLogEntry_DoNotAddNonSampledSpanToLogEntryWithSampledSpans()
145 TraceOptions.builder().setIsSampled(false).build(), in enhanceLogEntry_AddNonSampledSpanToLogEntryWithAllSpans()
174 TraceOptions.builder().setIsSampled(true).build(), in enhanceLogEntry_ConvertNullProjectIdToEmptyString()
/external/opencensus-java/contrib/log_correlation/log4j2/src/test/java/io/opencensus/contrib/logcorrelation/log4j2/
DOpenCensusLog4jLogCorrelationAllSpansTest.java56 TraceOptions.builder().setIsSampled(true).build(), in addSampledSpanToLogEntryWithAllSpans()
79 TraceOptions.builder().setIsSampled(false).build(), in addNonSampledSpanToLogEntryWithAllSpans()
121 TraceOptions.builder().setIsSampled(true).build(), in preserveOtherKeyValuePairs()
147 TraceOptions.builder().setIsSampled(true).build(), in overwriteExistingTracingKey()
DOpenCensusLog4jLogCorrelationSampledSpansTest.java55 TraceOptions.builder().setIsSampled(true).build(), in addSampledSpanToLogEntryWithSampledSpans()
78 TraceOptions.builder().setIsSampled(false).build(), in doNotAddNonSampledSpanToLogEntryWithSampledSpans()
DOpenCensusLog4jLogCorrelationNoSpansTest.java55 TraceOptions.builder().setIsSampled(true).build(), in doNotAddSampledSpanToLogEntryWithNoSpans()
75 TraceOptions.builder().setIsSampled(false).build(), in doNotAddNonSampledSpanToLogEntryWithNoSpans()
DOpenCensusTraceContextDataInjectorTest.java159 TraceOptions.builder().setIsSampled(true).build(), in rawContextDataWithTracingData()
192 TraceOptions.builder().setIsSampled(true).build(), in rawContextDataWithoutTracingData()
/external/opencensus-java/api/src/main/java/io/opencensus/trace/
DTraceOptions.java239 public Builder setIsSampled() { in setIsSampled() method in TraceOptions.Builder
240 return setIsSampled(true); in setIsSampled()
250 public Builder setIsSampled(boolean isSampled) { in setIsSampled() method in TraceOptions.Builder
/external/opencensus-java/exporters/trace/zipkin/src/test/java/io/opencensus/exporter/trace/zipkin/
DZipkinExporterHandlerTest.java75 TraceOptions.builder().setIsSampled(true).build()), in generateSpan_NoKindAndRemoteParent()
116 TraceOptions.builder().setIsSampled(true).build()), in generateSpan_ServerKind()
157 TraceOptions.builder().setIsSampled(true).build()), in generateSpan_ClientKind()
202 TraceOptions.builder().setIsSampled(true).build()), in generateSpan_WithAttributes()
/external/opencensus-java/exporters/trace/instana/src/test/java/io/opencensus/exporter/trace/instana/
DInstanaExporterHandlerTest.java72 TraceOptions.builder().setIsSampled(true).build()), in generateSpan_NoKindAndRemoteParent()
110 TraceOptions.builder().setIsSampled(true).build()), in generateSpan_ServerKind()
148 TraceOptions.builder().setIsSampled(true).build()), in generateSpan_ClientKind()
/external/opencensus-java/contrib/spring_sleuth_v1x/src/main/java/io/opencensus/contrib/spring/sleuth/v1x/
DOpenCensusSleuthSpan.java45 TraceOptions.builder().setIsSampled(true).build();
47 TraceOptions.builder().setIsSampled(false).build();
/external/opencensus-java/contrib/appengine_standard_util/src/test/java/io/opencensus/contrib/appengine/standard/util/
DAppEngineCloudTraceContextUtilsTest.java73 TraceOptions.builder().setIsSampled(true).build())); in toFromSampledCloudTraceContext()
121 TraceOptions.builder().setIsSampled(false).build())); in toFromNotSampledCloudTraceContext()
/external/opencensus-java/exporters/trace/jaeger/src/test/java/io/opencensus/exporter/trace/jaeger/
DJaegerExporterHandlerTest.java134 TraceOptions.builder().setIsSampled(true).build()); in sampleSpanContext()
172 TraceOptions.builder().setIsSampled(false).build()), in sampleLinks()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/
DSpanBuilderImpl.java47 TraceOptions.builder().setIsSampled(true).build();
49 TraceOptions.builder().setIsSampled(false).build();
/external/opencensus-java/contrib/appengine_standard_util/src/main/java/io/opencensus/contrib/appengine/standard/util/
DAppEngineCloudTraceContextUtils.java69 TraceOptions.builder().setIsSampled(cloudTraceContext.isTraceEnabled()).build(), in fromCloudTraceContext()
/external/opencensus-java/impl_core/src/jmh/java/io/opencensus/implcore/trace/propagation/
DBinaryFormatImplBenchmark.java53 TraceOptions.builder().setIsSampled(random.nextBoolean()).build(), in setup()
DB3FormatImplBenchmark.java57 TraceOptions.builder().setIsSampled(random.nextBoolean()).build(), in setup()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/propagation/
DB3Format.java106 traceOptions = TraceOptions.builder().setIsSampled(true).build(); in extract()
/external/opencensus-java/contrib/http_util/src/main/java/io/opencensus/contrib/http/util/
DCloudTraceFormat.java73 static final TraceOptions OPTIONS_SAMPLED = TraceOptions.builder().setIsSampled(true).build();
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/trace/propagation/
DBinaryFormatImplTest.java66 SpanContext.create(TRACE_ID, SPAN_ID, TraceOptions.builder().setIsSampled(true).build())); in propagate_SpanContextTracingEnabled()
/external/opencensus-java/api/src/test/java/io/opencensus/trace/samplers/
DSamplersTest.java47 SpanContext.create(traceId, parentSpanId, TraceOptions.builder().setIsSampled(true).build());
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/trace/export/
DSpanExporterImplTest.java56 TraceOptions.builder().setIsSampled(true).build());
DInProcessSampledSpanStoreImplTest.java62 TraceOptions.builder().setIsSampled(true).build());
/external/opencensus-java/contrib/http_util/src/test/java/io/opencensus/contrib/http/util/
DCloudTraceFormatTest.java73 TraceOptions.builder().setIsSampled(true).build();

12