htrace-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Lee <>
Subject HTRACE-215 Simplify the Sampler type - discussion
Date Mon, 27 Jul 2015 18:33:36 GMT

I was previously making use of this feature. I was using it to trace
different types of inputs with different probabilities. It looks like
now I'll either have move all tracing logic completely outside of
htrace related classes and only use Always and Never sampler which
seems weird? Why even bother with providing ProbabilitySampler when
(rand.nextDouble() < X ? AlwaysSampler.INSTANCE :
NeverSampler.INSTANCE) is available.


View raw message