Skip to content

Session started in order to track cache hits #1057

@ztmztm

Description

@ztmztm

Problem Statement

The recent mods, version 4.15.2 or 4.15.3, added a behavior that might create some problems to some people.
It looks like hitting a cache key now makes Sentry start a session, which might be undesirable for some long-lived processes like the Laravel Horizon supervisor and master process.

What I experienced is that "all of a sudden" (that is after upgrading Sentry packages via composer), my deploy script doing the "horizon:terminate" stoppeed working. After A LOT of researching, I found out that Sentry was actually starting a session in order to gather data subsequently to a cache hit. My session storage was the DB (I'm going to change it) and a firewall is dropping the TCP connections after 60 mins, so the long-lived processes were stuck forever waiting to close a connection that wasn't responding and that I did not expect to have started at all.

Solution Brainstorm

Please consider the need to start a session. I'm not a great expert, so I'm not going deep, but maybe that part can be ignored is a session has not started yet.
I understand if you decide to not do anything, because you believe everything's working as expected.

Metadata

Metadata

Assignees

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions