public function leaveBreadcrumb($name, $type = null, array $metaData = [])
    {
        try {
            $name = (new ReflectionClass($name))->getShortName();
        } catch (ReflectionException $e) {
            //
        }

        $name = substr((string) $name, 0, Breadcrumb::MAX_LENGTH);

        $type = in_array($type, Breadcrumb::getTypes(), true) ? $type : Breadcrumb::MANUAL_TYPE;

        $this->recorder->record(new Breadcrumb($name, $type, $metaData));
    }