lazy-json-pages icon indicating copy to clipboard operation
lazy-json-pages copied to clipboard

Only the first HTTP request is logged in Telescope

Open sebastiaanluca opened this issue 2 years ago • 5 comments

Detailed description

When debugging the HTTP requests made using Telescope or Ray, only the first request is actually logged. Any subsequent calls to the API to retrieve more pages do not appear in the logs.

Context

Why is this change important to you? How would you use it?

Would be very useful to know how many requests are actually made and to see their information to able to debug issues.

Possible implementation

All requests are logged.

Though not sure how to enable this. I digged into the code and saw the package wraps the original call in a SourceWrapper. So it's possible the package checks the result of that call (since it's already being sent as we called e.g. ->get()), but it doesn't make requests using the built-in client?

Your environment

Include as many relevant details about the environment you experienced the bug in and how to reproduce it.

PHP 8 Laravel 8.60 v1 of this package macOS Laravel Valet

sebastiaanluca avatar Sep 14 '21 16:09 sebastiaanluca