/external/opencensus-java/api/src/test/java/io/opencensus/trace/samplers/ |
D | SamplersTest.java | 57 Samplers.alwaysSample() in alwaysSampleSampler_AlwaysReturnTrue() 68 Samplers.alwaysSample() in alwaysSampleSampler_AlwaysReturnTrue() 81 assertThat(Samplers.alwaysSample().toString()).isEqualTo("AlwaysSampleSampler"); in alwaysSampleSampler_ToString() 88 Samplers.neverSample() in neverSampleSampler_AlwaysReturnFalse() 99 Samplers.neverSample() in neverSampleSampler_AlwaysReturnFalse() 112 assertThat(Samplers.neverSample().toString()).isEqualTo("NeverSampleSampler"); in neverSampleSampler_ToString() 117 Samplers.probabilitySampler(1.01); in probabilitySampler_outOfRangeHighProbability() 122 Samplers.probabilitySampler(-0.00001); in probabilitySampler_outOfRangeLowProbability() 149 final Sampler neverSample = Samplers.probabilitySampler(0.0); in probabilitySampler_DifferentProbabilities_NotSampledParent() 152 final Sampler alwaysSample = Samplers.probabilitySampler(1.0); in probabilitySampler_DifferentProbabilities_NotSampledParent() [all …]
|
/external/opencensus-java/benchmarks/src/jmh/java/io/opencensus/benchmarks/trace/ |
D | StartEndSpanBenchmark.java | 24 import io.opencensus.trace.samplers.Samplers; 56 .setSampler(Samplers.neverSample()) in setup() 78 .setSampler(Samplers.neverSample()) in startEndNonSampledRootSpan() 95 .setSampler(Samplers.neverSample()) in startEndRecordEventsRootSpan() 109 Span span = data.tracer.spanBuilder(SPAN_NAME).setSampler(Samplers.alwaysSample()).startSpan(); in startEndSampledRootSpan() 125 .setSampler(Samplers.neverSample()) in startEndNonSampledChildSpan() 142 .setSampler(Samplers.neverSample()) in startEndRecordEventsChildSpan() 159 .setSampler(Samplers.alwaysSample()) in startEndSampledChildSpan()
|
D | RecordTraceEventsBenchmark.java | 27 import io.opencensus.trace.samplers.Samplers; 65 .setSampler(sampled ? Samplers.alwaysSample() : Samplers.neverSample()) in setup() 70 .setSampler(sampled ? Samplers.alwaysSample() : Samplers.neverSample()) in setup()
|
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/trace/ |
D | SpanBuilderImplTest.java | 35 import io.opencensus.trace.samplers.Samplers; 51 TraceParams.DEFAULT.toBuilder().setSampler(Samplers.alwaysSample()).build(); 69 .setSampler(Samplers.alwaysSample()) in startSpan_CreatesTheCorrectSpanImplInstance() 75 .setSampler(Samplers.neverSample()) in startSpan_CreatesTheCorrectSpanImplInstance() 80 .setSampler(Samplers.neverSample()) in startSpan_CreatesTheCorrectSpanImplInstance() 130 .setSampler(Samplers.neverSample()) in startSpanNullParentWithRecordEvents() 145 .setSampler(Samplers.neverSample()) in startSpanNullParentNoRecordOptions() 226 .setSampler(Samplers.neverSample()) in startRootSpan_WithSpecifiedSampler() 245 .setSampler(Samplers.alwaysSample()) in startRemoteChildSpan_WithSpecifiedSampler() 252 .setSampler(Samplers.neverSample()) in startRemoteChildSpan_WithSpecifiedSampler() [all …]
|
/external/opencensus-java/api/src/test/java/io/opencensus/trace/config/ |
D | TraceParamsTest.java | 21 import io.opencensus.trace.samplers.Samplers; 31 assertThat(TraceParams.DEFAULT.getSampler()).isEqualTo(Samplers.probabilitySampler(1e-4)); in defaultTraceParams() 74 .setSampler(Samplers.alwaysSample()) in updateTraceParams_All() 80 assertThat(traceParams.getSampler()).isEqualTo(Samplers.alwaysSample()); in updateTraceParams_All()
|
D | TraceConfigTest.java | 21 import io.opencensus.trace.samplers.Samplers; 41 .setSampler(Samplers.alwaysSample()) in updateActiveTraceParams_NoOpImplementation()
|
/external/opencensus-java/api/src/main/java/io/opencensus/trace/samplers/ |
D | Samplers.java | 27 public final class Samplers { class 32 private Samplers() {} in Samplers() method in Samplers
|
/external/opencensus-java/exporters/trace/ocagent/src/test/java/io/opencensus/exporter/trace/ocagent/ |
D | TraceProtoUtilsTest.java | 51 import io.opencensus.trace.samplers.Samplers; 273 assertThat(TraceProtoUtils.toTraceConfigProto(getTraceParams(Samplers.alwaysSample()))) in toTraceConfigProto_AlwaysSampler() 282 assertThat(TraceProtoUtils.toTraceConfigProto(getTraceParams(Samplers.neverSample()))) in toTraceConfigProto_NeverSampler() 291 assertThat(TraceProtoUtils.toTraceConfigProto(getTraceParams(Samplers.probabilitySampler(0.5)))) in toTraceConfigProto_ProbabilitySampler() 306 .isEqualTo(Samplers.alwaysSample()); in fromTraceConfigProto_AlwaysSampler() 316 .isEqualTo(Samplers.neverSample()); in fromTraceConfigProto_NeverSampler() 327 .isEqualTo(Samplers.probabilitySampler(0.01)); in fromTraceConfigProto_ProbabilitySampler() 349 DEFAULT_PARAMS.toBuilder().setSampler(Samplers.probabilitySampler(0.01)).build(); in applyUpdatedConfig()
|
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/trace/config/ |
D | TraceConfigImplTest.java | 22 import io.opencensus.trace.samplers.Samplers; 42 .setSampler(Samplers.alwaysSample()) in updateTraceParams()
|
/external/opencensus-java/examples/src/main/java/io/opencensus/examples/trace/ |
D | MultiSpansTracing.java | 26 import io.opencensus.trace.samplers.Samplers; 63 traceConfig.getActiveTraceParams().toBuilder().setSampler(Samplers.alwaysSample()).build()); in main()
|
D | MultiSpansScopedTracing.java | 27 import io.opencensus.trace.samplers.Samplers; 74 traceConfig.getActiveTraceParams().toBuilder().setSampler(Samplers.alwaysSample()).build()); in main()
|
D | MultiSpansContextTracing.java | 27 import io.opencensus.trace.samplers.Samplers; 76 traceConfig.getActiveTraceParams().toBuilder().setSampler(Samplers.alwaysSample()).build()); in main()
|
/external/opencensus-java/contrib/agent/src/main/java/io/opencensus/contrib/agent/instrumentation/ |
D | TraceStrategyImpl.java | 25 import io.opencensus.trace.samplers.Samplers; 40 .setSampler(Samplers.alwaysSample()) in startScopedSpan()
|
/external/opencensus-java/api/src/main/java/io/opencensus/trace/config/ |
D | TraceParams.java | 26 import io.opencensus.trace.samplers.Samplers; 39 private static final Sampler DEFAULT_SAMPLER = Samplers.probabilitySampler(DEFAULT_PROBABILITY);
|
/external/opencensus-java/exporters/trace/ocagent/src/main/java/io/opencensus/exporter/trace/ocagent/ |
D | TraceProtoUtils.java | 53 import io.opencensus.trace.samplers.Samplers; 324 if (Samplers.alwaysSample().equals(librarySampler)) { in toTraceConfigProto() 327 } else if (Samplers.neverSample().equals(librarySampler)) { in toTraceConfigProto() 362 builder.setSampler(Samplers.alwaysSample()); in fromTraceConfigProto() 364 builder.setSampler(Samplers.neverSample()); in fromTraceConfigProto() 368 Samplers.probabilitySampler( in fromTraceConfigProto()
|
/external/opencensus-java/api/src/test/java/io/opencensus/trace/ |
D | SpanBuilderTest.java | 25 import io.opencensus.trace.samplers.Samplers; 100 spanBuilder.setSampler(Samplers.alwaysSample()); in doNotCrash_NoopImplementation()
|
/external/opencensus-java/examples/src/main/java/io/opencensus/examples/zpages/ |
D | ZPagesTester.java | 32 import io.opencensus.trace.samplers.Samplers; 53 tracer.spanBuilder(SPAN_NAME).setRecordEvents(true).setSampler(Samplers.alwaysSample()); in recordExampleData()
|
/external/opencensus-java/examples/src/main/java/io/opencensus/examples/helloworld/ |
D | QuickStart.java | 38 import io.opencensus.trace.samplers.Samplers; 84 .setSampler(Samplers.alwaysSample()); in main()
|
/external/opencensus-java/exporters/stats/prometheus/src/main/java/io/opencensus/exporter/stats/prometheus/ |
D | PrometheusStatsCollector.java | 36 import io.opencensus.trace.samplers.Samplers; 53 private static final Sampler probabilitySampler = Samplers.probabilitySampler(0.0001);
|
/external/opencensus-java/examples/src/main/java/io/opencensus/examples/grpc/helloworld/ |
D | HelloWorldClient.java | 39 import io.opencensus.trace.samplers.Samplers; 81 tracer.spanBuilder("client").setRecordEvents(true).setSampler(Samplers.alwaysSample()); in greet()
|
D | HelloWorldServer.java | 42 import io.opencensus.trace.samplers.Samplers; 66 .setSampler(Samplers.alwaysSample()); in performWork()
|
/external/opencensus-java/contrib/zpages/src/main/java/io/opencensus/contrib/zpages/ |
D | TraceConfigzZPageHandler.java | 24 import io.opencensus.trace.samplers.Samplers; 162 traceParamsBuilder.setSampler(Samplers.probabilitySampler(samplingProbability)); in maybeApplyChanges()
|
/external/opencensus-java/contrib/spring/src/test/java/io/opencensus/contrib/spring/aop/ |
D | CensusSpringAspectTest.java | 28 import io.opencensus.trace.samplers.Samplers; 69 .setSampler(Samplers.alwaysSample()) in setup()
|
/external/mesa3d/src/mesa/program/ |
D | prog_execute.h | 71 const GLubyte *Samplers; /** Array mapping sampler var to tex unit */ member
|
/external/opencensus-java/exporters/trace/zipkin/src/main/java/io/opencensus/exporter/trace/zipkin/ |
D | ZipkinExporterHandler.java | 37 import io.opencensus.trace.samplers.Samplers; 59 private static final Sampler probabilitySampler = Samplers.probabilitySampler(0.0001);
|