com.datadoghq.trace.sampling.Sampler Maven / Gradle / Ivy
package com.datadoghq.trace.sampling;
import com.datadoghq.trace.DDBaseSpan;
/** Main interface to sample a collection of traces. */
public interface Sampler {
/**
* Sample a collection of traces based on the parent span
*
* @param span the parent span with its context
* @return true when the trace/spans has to be reported/written
*/
boolean sample(DDBaseSpan> span);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy