Laravel 11 added a new Context feature that allows adding arbitrary metadata to its logging system
This PR adds support for reading from the Context and attaching it to events as metadata
There is a new configuration option, attach_hidden_context (or environment variable BUGSNAG_ATTACH_HIDDEN_CONTEXT), that controls whether "hidden context" is added as metadata as well. This is disabled by default to avoid accidentally leaking data
Goal
Laravel 11 added a new
Context
feature that allows adding arbitrary metadata to its logging systemThis PR adds support for reading from the
Context
and attaching it to events as metadataThere is a new configuration option,
attach_hidden_context
(or environment variableBUGSNAG_ATTACH_HIDDEN_CONTEXT
), that controls whether "hidden context" is added as metadata as well. This is disabled by default to avoid accidentally leaking dataSee also #536 & https://laravel.com/docs/11.x/context