bugsnag / bugsnag-js-performance

Monitor the performance of your JavaScript (web and React Native) and see the results in your BugSnag dashboard.
https://docs.bugsnag.com/performance/integration-guides
MIT License
4 stars 1 forks source link

Discard React Native spans when the app is in the background #384

Closed yousif-bugsnag closed 7 months ago

yousif-bugsnag commented 7 months ago

Goal

Registers a backgrounding listener in the React native client so that any open spans are now discarded when the app moves to the background.

github-actions[bot] commented 7 months ago

Browser bundle size

NPM build

Package
Before 175.95 kB
After 175.95 kB
± No change

CDN build

Unminified Minfied Minified + gzipped
Before 84.94 kB 31.99 kB 9.84 kB
After 84.94 kB 31.99 kB 9.84 kB
± No change No change No change

Code coverage

Ok File (✨=New File) Lines Branches Functions Statements
✨ /home/runner/work/bugsnag-js-performance/bugsnag-js-performance/packages/platforms/react-native/lib/backgrounding-listener.ts 100%
(+100%)
100%
(+100%)
100%
(+100%)
100%
(+100%)

Total:

Lines Branches Functions Statements
92.2%(-0.05%) 80.99%(+0.32%) 93.87%(+0.54%) 90.23%(-0.08%)

Generated against 7c8eeda14dd6a68615fbfd369fa198f1125665c1 on 11 December 2023 at 10:27:02 UTC