Overrides ObserverInterface::observe
public function observe($amount, iterable $attributes = []) : void { $context = Context::getRoot(); $attributes = $this->attributesFactory ->builder($attributes) ->build(); foreach ($this->writers as $writer) { $writer->record($amount, $attributes, $context, $this->timestamp); } }