Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Telescope 请求跟踪问题 #452

Open
ykxiao opened this issue Jul 17, 2023 · 1 comment
Open

Telescope 请求跟踪问题 #452

ykxiao opened this issue Jul 17, 2023 · 1 comment
Assignees
Labels
analyzing Analyzing this issue

Comments

@ykxiao
Copy link

ykxiao commented Jul 17, 2023

  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();
    });
@ykxiao ykxiao added the analyzing Analyzing this issue label Jul 17, 2023
@silie666
Copy link

silie666 commented Dec 6, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzing Analyzing this issue
Projects
None yet
Development

No branches or pull requests

3 participants