RandomSampler

class RandomSampler extends Sampler

Sampler that uses a random number generator and a probability threshold to decide whether to trace a request or not.

Companion:
object
trait Sampler
class Object
trait Matchable
class Any

Value members

Concrete methods

override def decide(operation: Operation): SamplingDecision

Decides whether a trace should be sampled or not. The provided SpanBuilder contains the information that has been gathered so far for what will become the root Span for the new Trace.

Decides whether a trace should be sampled or not. The provided SpanBuilder contains the information that has been gathered so far for what will become the root Span for the new Trace.

Definition Classes
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Returns:

a string representation of the object.

Definition Classes
Any