hhxsv5 / laravel-s

LaravelS is an out-of-the-box adapter between Laravel/Lumen and Swoole.
MIT License
3.82k stars 471 forks source link

Telescope 请求跟踪问题 #452

Open ykxiao opened 12 months ago

ykxiao commented 12 months ago
  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();
    });
silie666 commented 7 months ago

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