Skip to content
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

Support for Laravel 11's Context #536

Closed
henze-housepedia opened this issue Apr 16, 2024 · 2 comments
Closed

Support for Laravel 11's Context #536

henze-housepedia opened this issue Apr 16, 2024 · 2 comments
Labels
feature request Request for a new feature released This feature/bug fix has been released

Comments

@henze-housepedia
Copy link

Description

Laravel comes with a new feature called Context. This automatically append context data to the log entries. Unfortunately this is added as an extra and not directly into the meta data, and thus not being picked up by Bugsnag.

Describe the solution you'd like
It would be nice if bugsnag automatically appends these context data.

Describe alternatives you've considered
Ofcourse, I can setup Bugsnag::registerCallback where I add the context data, but this is merely a workaround.

Additional context
Ironically there is extra context: the documentation: https://laravel.com/docs/11.x/context

@mclack
Copy link

mclack commented May 8, 2024

Hi @henze-housepedia

Thanks for raising this with us. We've now added a task to our backlog to support automatic attachment of Laravel's Context to BugSnag error reports.

We don't currently have an ETA on when this could be looked at, but we'll make sure to post any updates on this thread.

@mclack mclack added feature request Request for a new feature backlog We hope to fix this feature/bug in the future labels May 8, 2024
@mclack
Copy link

mclack commented Jun 4, 2024

Hi @henze-housepedia

I'm reaching out to let you know that automatic attachment of Laravel's Context is now supported as of the v2.28.0 release of bugsnag-laravel: https://github.com/bugsnag/bugsnag-laravel/releases/tag/v2.28.0

As such, we have also added a section in the BugSnag documentation: https://docs.bugsnag.com/platforms/php/laravel/automatically-captured-data/#context-information

Thanks again for raising this with us. Please let us know if you have any issues with this after upgrading your BugSnag SDK.

@mclack mclack closed this as completed Jun 4, 2024
@mclack mclack added released This feature/bug fix has been released and removed backlog We hope to fix this feature/bug in the future labels Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request for a new feature released This feature/bug fix has been released
Projects
None yet
Development

No branches or pull requests

2 participants