4use Wikimedia\Assert\Assert;
18 private int $percentChance;
22 $percentChance >= 0 && $percentChance <= 100,
24 'must be between 0 and 100 inclusive'
26 $this->percentChance = $percentChance;
31 if ( $parentSpanContext !== null ) {
35 return mt_rand( 1, 100 ) <= $this->percentChance;
if(!defined('MW_SETUP_CALLBACK'))
Data transfer object holding data associated with a given span.