Skip to content

Add internal session plugin to the React Native tracker - #1388

Merged
Matus Tomlein (matus-tomlein) merged 6 commits into
wip/react-nativefrom
issue/react_native_session
Nov 28, 2024
Merged

Add internal session plugin to the React Native tracker#1388
Matus Tomlein (matus-tomlein) merged 6 commits into
wip/react-nativefrom
issue/react_native_session

Conversation

@matus-tomlein

@matus-tomlein Matus Tomlein (matus-tomlein) commented Nov 21, 2024

Copy link
Copy Markdown
Contributor

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.

@bundlemon

bundlemon Bot commented Nov 21, 2024

Copy link
Copy Markdown

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

lgtm!

Comment thread trackers/react-native-tracker/src/utils.ts Outdated
Co-authored-by: Miranda Wilson <miranda@snowplow.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants