Skip to content

Enable logging only slow requests #1607

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

Closed
wants to merge 6 commits into from
Closed

Enable logging only slow requests #1607

wants to merge 6 commits into from

Conversation

xwiz
Copy link

@xwiz xwiz commented Jul 14, 2025

This enables logging of only requests which take long time to complete but not necessarily from slow queries

xwiz added 6 commits July 14, 2025 15:21
@taylorotwell
Copy link
Member

Thanks for your pull request to Laravel!

Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include.

If applicable, please consider releasing your code as a package so that the community can still take advantage of your contributions!

@xwiz
Copy link
Author

xwiz commented Jul 16, 2025

Hi @taylorotwell greetings.., not sure what the comment means if you have a different way you'd prefer it's implemented do let me know, it's a feature I would really appreciate for quick debugging when I don't want to use external packages in moderate production environments and I'm sure it will help some others for improving application performance without having to rely on sentry and the likes.

@xwiz xwiz deleted the patch-1 branch July 16, 2025 15:11
@xwiz
Copy link
Author

xwiz commented Jul 16, 2025

For anyone else needing this, realized this can be easily implemented, added a doc PR

laravel/docs#10623

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

Successfully merging this pull request may close these issues.

2 participants