-
Couldn't load subscription status.
- Fork 0
feat: Session Replay App Life Cycle #45
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Conflicts: # Sources/Observability/Client/ObservabilityClientFactory.swift
mario-launchdarkly
approved these changes
Oct 24, 2025
add SessionManagerMemoryTests
This was referenced Oct 24, 2025
Vadman97
pushed a commit
that referenced
this pull request
Oct 24, 2025
🤖 I have created a release *beep* *boop* --- ## [0.5.0](0.4.0...v0.5.0) (2025-10-24) ### Features * log memory warnings instrumentation ([#40](#40)) ([4f9ccf0](4f9ccf0)) * maskWebView option and accesibilityIdentifier support ([#44](#44)) ([7d029bd](7d029bd)) * Session Replay App Life Cycle ([#45](#45)) ([5a2fc4d](5a2fc4d)) * **system-metrics:** add auto instrumentation for cpu and memory ([#36](#36)) ([95ca6fc](95ca6fc)) ### Bug Fixes * Limit Package.swift to iOS and TV ([#34](#34)) ([7d76b65](7d76b65)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Bumps to 0.5.0 and updates changelog with new instrumentation/features and an iOS/TV packaging fix. > > - **Changelog (0.5.0)**: > - **Features**: > - Log memory warnings instrumentation > - `maskWebView` option and `accessibilityIdentifier` support > - Session Replay app lifecycle > - Auto-instrumentation for CPU and memory (`system-metrics`) > - **Bug Fix**: > - Limit `Package.swift` to iOS and tvOS > - **Release**: > - Update `.release-please-manifest.json` from `0.4.0` to `0.5.0` > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 71c4dc4. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note
Introduce AppLifecycleManager and stream-based session changes; refactor Session Replay to start/stop with app lifecycle and reinitialize on session resets, powered by a new Broadcaster.
Broadcaster<Value>actor to fan-outAsyncStreamevents to multiple subscribers.Task.sleep(seconds:)to useNSEC_PER_SEC.GraphQLClient: pass throughNetworkErrorbefore decoding fallback.ObservabilityContextwith a class; addappLifecycleManagerand make core refs immutable.AppLifecycleManagerthat exposes app lifecycle asAsyncStream<AppLifeCycleEvent>.ObservabilityClientFactory: create and injectAppLifecycleManagerintoSessionManagerandObservabilityContext.SessionManager:AppLifecycleManager(remove NotificationCenter observers).sessionChanges()AsyncStream<SessionInfo>and compute timeout usingDispatchTime.SessionStateenum; expandSessionInfodefaults and attributes.SessionManagerMemoryTeststo assert deallocation (no leak).SessionReplayEventGeneratorto build RRWeb-compatible events (image, viewport, interactions).SessionReplayExporter:sessionChanges()to reinitialize.SessionReplayEventGenerator; add logging; clean up on deinit.SnapshotTaker: observe lifecycle to start/stop periodic screenshots; requireAppLifecycleManaging.SessionReplayService: passappLifecycleManagertoSnapshotTaker; includeloginSessionReplayContext.payloadEncoded.txt; minor cleanups.Written by Cursor Bugbot for commit 388fb96. This will update automatically on new commits. Configure here.