trait Sampler
A sampler takes the decision of whether to collect and report Spans for a particular trace. Samplers are used only when starting a new Trace.
- Companion:
- object
Value members
Abstract methods
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.