Skip to content

Conversation

@bitsandfoxes
Copy link
Contributor

@bitsandfoxes bitsandfoxes commented Oct 28, 2025

The changes are the following:

Changes

LifeCycleIntegration

I renamed SessionIntegration to LifeCycleIntegration since this is what that does. It's internal so it's fine. OnQuitting moved from the logging integration into the LifeCycleIntegration. The integration now also adds breadcrumbs for application losing and regaining focus

Changes to the TraceGenerationIntegration

Logs are connected via the currently active span. If there is non active it falls back to the trace ID. The integration was regenerating the ID every time the app lost and regained focus, leading to fragmented logs. This also came up in #2210
For now, we can refrain from creating a new trace and keep one around. Span linking might change this in the future.

Results

With this we go from

Before

No indication that the game lost and regained focus. Since the trace got regenerated with gaining focus, disconnected logs.

Screenshot 2025-10-28 at 17 58 57

After

Screenshot 2025-10-28 at 17 51 56

@github-actions
Copy link
Contributor

github-actions bot commented Oct 28, 2025

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 026fb26

cursor[bot]

This comment was marked as outdated.

Base automatically changed from feat/structured-logging to feat/bump-version6 October 30, 2025 14:06
@bitsandfoxes bitsandfoxes merged commit ba62623 into feat/bump-version6 Oct 30, 2025
100 of 102 checks passed
@bitsandfoxes bitsandfoxes deleted the feat/structured-logging-followup1 branch October 30, 2025 16:46
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.

4 participants