bugsnag-laravel icon indicating copy to clipboard operation
bugsnag-laravel copied to clipboard

Problem when running with octane

Open ttrig opened this issue 3 years ago • 12 comments

Logs are not sent when running my application with octane, it works when serving it "normally".

If i add bugsnag to the octane.warm configuration and add a listener to octane.listeners."RequestTerminated" that runs Bugsnag::flush(), it works. Is there a (better) way of using this lib with octane?

Steps to reproduce

php artisan octane:start Log something with the bugsnag driver/channel.

Environment

  • Bugsnag version: 2.22
  • PHP version: 8.0
  • Composer version: 2
  • Laravel version: 8.58

ttrig avatar Sep 02 '21 14:09 ttrig

Hi @ttrig

Bugsnag does not yet fully support high-performance PHP servers like Swoole & RoadRunner of which your Octane project presumably deploys? This is something that's on our roadmap to support in the future and I'll let you know here of any updates!

luke-belton avatar Sep 03 '21 15:09 luke-belton

Has there been any update on this?

TwilightDuck avatar Feb 14 '22 15:02 TwilightDuck

@NickJorens I've successfully worked around this by applying this same code changes that are in @ttrig's PR

exzachlyvv avatar Feb 14 '22 16:02 exzachlyvv

Hi @NickJorens, No updates at the moment I'm afraid, this is still on our backlog but have not gotten around to working on it yet. We will post here as soon as there are further updates to share.

johnkiely1 avatar Feb 15 '22 10:02 johnkiely1

any updates on this ??

vonec avatar Nov 02 '22 04:11 vonec

Hi @vonec - no updates to share at this stage, our engineering team have been busy working on other priorities. As per comments above, we'll update this thread when there's any news 👍

luke-belton avatar Nov 02 '22 09:11 luke-belton

Came across this problem in my laravel sail setup using Octane Swoole. Hope the team find a cure :D

ruelluna avatar Jan 28 '23 04:01 ruelluna

I have the same issue today, if no solution we will move to another service like Sentry or Laravel Flare

indigoram89 avatar Aug 16 '23 12:08 indigoram89

@luke-belton Octane has been available for 3 years now... Can we please get this addressed? A workaround suggested in an earlier comment seems very simple to integrate. Perhaps at the same time as Laravel 11 support in #532 ? Thank you 🙏

jackwh avatar Mar 02 '24 13:03 jackwh