avto-dev/roadrunner-laravel

Using with Telescope

Alexfilus opened this issue · 4 comments

When I use that package with Laravel Telescope, I get multiple requests in log from Telescope itself. http://joxi.ru/a2X0XWEUwnbBd2
I guess it's because of PHP working in CLI mode. Do you know simple way to fix this?

@Alexfilus Soon #26 will be published. After that can you try to reproduce your problem?

Please, update package up to v3.x. If any troubles will be happened again - I will open this issue back!

Update package, and Laravel to lastest versions. Problem remains.

I solved this by modify Telescope::filter callback in TelescopeServiceProvider

if ($entry->type === 'request') {
    if (isset($entry->content['uri'])) {
         if (substr($entry->content['uri'], 0, 10) === '/telescope') {
               return false;
          }
     }
}

just add this at the begining of callback