hhxsv5 / laravel-s

LaravelS is an out-of-the-box adapter between Laravel/Lumen and Swoole.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Telescope 请求跟踪问题

ykxiao opened this issue · comments

commented
  1. Your software version (Screenshot of your startup)

    Software Version
    PHP 7.4.33
    Swoole 4.5.11
    Laravel/Lumen 8.83.27
  2. Detail description about this issue(error/log)

    laravel-s 环境下使用 telescope,配置后请求不跟踪了,其他还需要配置吗。也配置了:APP_RUNNING_IN_CONSOLE=false

  3. Some reproducible code blocks and steps

    已修改:`app/Providers/EventServiceProvider.php`
    Event::listen('laravels.received_request', function ($request, $app) {
        $reflection = new \ReflectionClass(Telescope::class);
        $handlingApprovedRequest = $reflection->getMethod('handlingApprovedRequest');
        $handlingApprovedRequest->setAccessible(true);
        $handlingApprovedRequest->invoke(null, $app) ? Telescope::startRecording() : Telescope::stopRecording();
    });

同样的问题,请求跟踪不了
image