public function write($amount, iterable $attributes = [], $context = null) : void { if ($this->isEnabled()) { $this->writer ->record($this->instrument, $amount, $attributes, $context); } }