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

Add internal session plugin to the React Native tracker #1388

Merged
merged 6 commits into from
Nov 28, 2024

Conversation

matus-tomlein
Copy link
Contributor

@matus-tomlein matus-tomlein commented Nov 21, 2024

Adds an internal session plugin to the RN tracker that tracks session using the client_session context entity.

The session is persisted using the AsyncStorage dependency. Each restart of the app or new tracker will start a new session.

It should behave exactly the same as the session tracking in the previous version of the React Native tracker.

Copy link

bundlemon bot commented Nov 21, 2024

BundleMon

Files added (6)
Status Path Size Limits
trackers/javascript-tracker/dist/sp.js
+24.49KB 30KB / +10%
libraries/browser-tracker-core/dist/index.mod
ule.js
+23.44KB 25KB / +10%
libraries/tracker-core/dist/index.module.js
+19.48KB 20KB / +10%
trackers/browser-tracker/dist/index.umd.min.j
s
+17.4KB 20KB / +10%
trackers/javascript-tracker/dist/sp.lite.js
+17.33KB 20KB / +10%
trackers/browser-tracker/dist/index.module.js
+3.49KB 5KB / +10%

Total files change +105.62KB 0%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history

@matus-tomlein matus-tomlein marked this pull request as ready for review November 21, 2024 14:22
Copy link

@mscwilson mscwilson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

trackers/react-native-tracker/src/utils.ts Outdated Show resolved Hide resolved
@matus-tomlein matus-tomlein merged commit 382f387 into wip/react-native Nov 28, 2024
3 checks passed
@matus-tomlein matus-tomlein deleted the issue/react_native_session branch November 28, 2024 13:21
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.

2 participants