Overrides ExemplarReservoirInterface::offer
public function offer($index, $value, AttributesInterface $attributes, ContextInterface $context, int $timestamp) : void { $bucket = random_int(0, $this->measurements); $this->measurements++; if ($bucket < $this->size) { $this->storage ->store($bucket, $index, $value, $attributes, $context, $timestamp); } }