private function writeToHandler(): void
    {
        $values = $this->values;

        $values[self::METADATA_NAMESPACE] = [
            'firstTrace'        => $this->firstTrace,
            'lastTrace'         => $this->lastTrace,
            'regenerationTrace' => $this->regenerationTrace,
            'requestsCount'     => $this->requestsCount,
            'fingerprint'       => $this->fingerprint,
        ];

        $value = \json_encode($values, \JSON_PRESERVE_ZERO_FRACTION);

        $this->handler->write(
            $this->id,
            $this->prepareForWriteToHandler($value)
        );
    }