Home
last modified time | relevance | path

Searched refs:Samplers (Results 1 – 25 of 53) sorted by relevance

123

/external/opencensus-java/api/src/test/java/io/opencensus/trace/samplers/
DSamplersTest.java57 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/
DStartEndSpanBenchmark.java24 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()
DRecordTraceEventsBenchmark.java27 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/
DSpanBuilderImplTest.java35 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/
DTraceParamsTest.java21 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()
DTraceConfigTest.java21 import io.opencensus.trace.samplers.Samplers;
41 .setSampler(Samplers.alwaysSample()) in updateActiveTraceParams_NoOpImplementation()
/external/opencensus-java/api/src/main/java/io/opencensus/trace/samplers/
DSamplers.java27 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/
DTraceProtoUtilsTest.java51 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/
DTraceConfigImplTest.java22 import io.opencensus.trace.samplers.Samplers;
42 .setSampler(Samplers.alwaysSample()) in updateTraceParams()
/external/opencensus-java/examples/src/main/java/io/opencensus/examples/trace/
DMultiSpansTracing.java26 import io.opencensus.trace.samplers.Samplers;
63 traceConfig.getActiveTraceParams().toBuilder().setSampler(Samplers.alwaysSample()).build()); in main()
DMultiSpansScopedTracing.java27 import io.opencensus.trace.samplers.Samplers;
74 traceConfig.getActiveTraceParams().toBuilder().setSampler(Samplers.alwaysSample()).build()); in main()
DMultiSpansContextTracing.java27 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/
DTraceStrategyImpl.java25 import io.opencensus.trace.samplers.Samplers;
40 .setSampler(Samplers.alwaysSample()) in startScopedSpan()
/external/opencensus-java/api/src/main/java/io/opencensus/trace/config/
DTraceParams.java26 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/
DTraceProtoUtils.java53 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/
DSpanBuilderTest.java25 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/
DZPagesTester.java32 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/
DQuickStart.java38 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/
DPrometheusStatsCollector.java36 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/
DHelloWorldClient.java39 import io.opencensus.trace.samplers.Samplers;
81 tracer.spanBuilder("client").setRecordEvents(true).setSampler(Samplers.alwaysSample()); in greet()
DHelloWorldServer.java42 import io.opencensus.trace.samplers.Samplers;
66 .setSampler(Samplers.alwaysSample()); in performWork()
/external/opencensus-java/contrib/zpages/src/main/java/io/opencensus/contrib/zpages/
DTraceConfigzZPageHandler.java24 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/
DCensusSpringAspectTest.java28 import io.opencensus.trace.samplers.Samplers;
69 .setSampler(Samplers.alwaysSample()) in setup()
/external/mesa3d/src/mesa/program/
Dprog_execute.h71 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/
DZipkinExporterHandler.java37 import io.opencensus.trace.samplers.Samplers;
59 private static final Sampler probabilitySampler = Samplers.probabilitySampler(0.0001);

123