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

fix: Sessions not getting finished #2895

Merged
merged 3 commits into from
Nov 23, 2023
Merged

fix: Sessions not getting finished #2895

merged 3 commits into from
Nov 23, 2023

Conversation

bitsandfoxes
Copy link
Contributor

@bitsandfoxes bitsandfoxes commented Nov 23, 2023

Fixes #2863 and #2551

With #2496 we moved updating the session to the client to be able to align with the rest of the SDKs regarding the order of filtering and whether dropped events affect the session.

But we forgot to pass the GlobalSessionManager from the hub to the client. So both the hub and the client had their own GlobalSessionManager.

Ideally, I'd like to fix this properly by keeping the SessionManager solely on the hub and passing the session at the time down to the scope during capture instead of holding the state in the client. But with getsentry/rfcs#122 on the horizon, this might be a waste of time and effort.

@bitsandfoxes bitsandfoxes changed the title fix: Sessions not being able to finish fix: Sessions not getting finished Nov 23, 2023
@bruno-garcia
Copy link
Member

We could probably benefit some integration tests eventually. But a fix should go out asap for this

@bruno-garcia bruno-garcia merged commit faf01c9 into main Nov 23, 2023
14 checks passed
@bruno-garcia bruno-garcia deleted the fix/sessions branch November 23, 2023 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash free rate is broken
2 participants