Skip to content

feat: Added SentrySdk.IsSessionActive#4662

Merged
bitsandfoxes merged 48 commits into
version6from
feat/active-session
Oct 29, 2025
Merged

feat: Added SentrySdk.IsSessionActive#4662
bitsandfoxes merged 48 commits into
version6from
feat/active-session

Conversation

@bitsandfoxes
Copy link
Copy Markdown
Contributor

Unity SDK integrations pause and resume sessions in response to lifecycle events without knowing if a session is active. This causes repeated warnings from GlobalSessionManager ("Attempted to pause/resume a session, but a session has not been started") with no way for integrations to prevent them.

_options.LogWarning("Attempted to resume a session, but a session has not been started.");

This PR adds IHub.IsSessionActive to allow checking session state before pause/resume operations. This also gives users insights into whether there currently is a session active. I don't know how else they are supposed to deal any manual session handling anyway.

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.

3 participants