bugsnag/bugsnag-laravel

Problem when running with octane

ttrig opened this issue ยท 12 comments

ttrig commented

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

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!

Has there been any update on this?

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

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.

vonec commented

any updates on this ??

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 ๐Ÿ‘

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

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

@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 ๐Ÿ™

@luke-belton Any further updates on this? I've installed Bugsnag in a recent project only to find that none of my exceptions are being reported in BugSnag. It'll be great to get support for Octane and there is even a workaround mentioned which could be used to inspire a PR.

I moved to Sentry and it works great with Octane.

Hi everyone, thanks for your continued interested in this. We are expecting to work on support for Lavavel Octane during Q3 - we'll update this thread when that gets released!