class Sentry::Configuration

def sample_allowed?

def sample_allowed?
  return true if sample_rate == 1.0
  Random.rand < sample_rate
end