Currently the delivering phase of sessions (SessionTracker::deliverSessions) is built-in to the startSession function at RouteMatched event which adds unnecessary overhead to some lucky clients.
I understand that this "built-in" behaviour comes from underlying "bugsnag/bugsnag" package and I don't see a way how to change that from this package.
My point is to delay session delivery to after the response is sent. This can be done, as one example, by putting deliveryng code to app()->terminating(<call deliver sessions>) which will be invoked after the request is served.
Currently the delivering phase of sessions (
SessionTracker::deliverSessions
) is built-in to thestartSession
function atRouteMatched
event which adds unnecessary overhead to some lucky clients.I understand that this "built-in" behaviour comes from underlying "bugsnag/bugsnag" package and I don't see a way how to change that from this package.
My point is to delay session delivery to after the response is sent. This can be done, as one example, by putting deliveryng code to
app()->terminating(<call deliver sessions>)
which will be invoked after the request is served.What do you think?