func (a *Agent) samplePriorityTrace(pt ProcessedTrace) bool {
	if a.PrioritySampler.Sample(pt.Trace, pt.Root, pt.Env, pt.ClientDroppedP0s) {
		return true
	}
	if traceContainsError(pt.Trace) {
		return a.ErrorsSampler.Sample(pt.Trace, pt.Root, pt.Env)
	}
	return a.ExceptionSampler.Sample(pt.Trace, pt.Root, pt.Env)
}
// samplePriorityTrace samples traces with priority set on them. PrioritySampler and
// ErrorSampler are run in parallel. The ExceptionSampler catches traces with rare top-level
// or measured spans that are not caught by PrioritySampler and ErrorSampler.
samplePriorityTrace samples traces with priority set on them. PrioritySampler and
ErrorSampler are run in parallel. The ExceptionSampler catches traces with rare top-level
or measured spans that are not caught by PrioritySampler and ErrorSampler.
// samplePriorityTrace samples traces with priority set on them . PrioritySampler and // ErrorSampler are run in parallel . The ExceptionSampler catches traces with rare top - level // or measured spans that are not caught by PrioritySampler and ErrorSampler .
func (a *Agent) samplePriorityTrace(pt ProcessedTrace) bool {
	if a.PrioritySampler.Sample(pt.Trace, pt.Root, pt.Env, pt.ClientDroppedP0s) {
		return true
	}
	if traceContainsError(pt.Trace) {
		return a.ErrorsSampler.Sample(pt.Trace, pt.Root, pt.Env)
	}
	return a.ExceptionSampler.Sample(pt.Trace, pt.Root, pt.Env)
}
func ( a * Agent ) samplePriorityTrace ( pt ProcessedTrace ) bool { if a . PrioritySampler . Sample ( pt . Trace , pt . Root , pt . Env , pt . ClientDroppedP0s ) { return true } if traceContainsError ( pt . Trace ) { return a . ErrorsSampler . Sample ( pt . Trace , pt . Root , pt . Env ) } return a . ExceptionSampler . Sample ( pt . Trace , pt . Root , pt . Env ) }
samplePriorityTrace samples traces with priority set on them.
samplePriorityTrace samples traces with priority set on them .