sampleTrace method

bool sampleTrace(
  1. TracingId traceId
)

Whether a trace should be sampled based on its Trace Id.

Implementation

bool sampleTrace(TracingId traceId) {
  final lowBits = traceId.value & _maxUint64;
  return sample(lowBits);
}