Skip to content

Delay session delivery to "after the response is sent" #513

@lezhnev74

Description

@lezhnev74

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.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogWe hope to fix this feature/bug in the futureneeds discussionRequires internal analysis/discussion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions