Treblle / treblle-laravel

The official Treblle SDK for Laravel. Seamlessly integrate Treblle to manage communication with your dashboard, send errors, and secure sensitive data.
https://www.treblle.com/
MIT License
129 stars 24 forks source link

Two API responses registered when using Laravel Octane #5

Closed khalyomede closed 2 years ago

khalyomede commented 2 years ago

Description

When serving requests using Laravel Octane, 2 duplicated API responses are registered in the user's dashboard (instead of one).

trebble-octane-dashboard-two-logs

Reproduce the issue

  1. Run php artisan octane:start --server=swoole, then make a request to your endpoint
  2. Check on your dashboard that the response is duplicated twice

Expected behavior

Only one API response is logged on the user's dashboard.

cindreta commented 2 years ago

Yup this works like a charm! Thank you 🙏🏻