Closed gingerbenw closed 10 months ago
NPM build
Package | |
---|---|
Before | 178.19 kB |
After | 178.36 kB |
± | +176 bytes ⚠️ |
CDN build
Unminified | Minfied | Minified + gzipped | |
---|---|---|---|
Before | 85.73 kB |
32.30 kB |
9.90 kB |
After | 85.74 kB |
32.30 kB |
9.90 kB |
± | +13 bytes ⚠️ |
+2 bytes ⚠️ |
+2 bytes ⚠️ |
Ok | File (✨=New File) | Lines | Branches | Functions | Statements |
---|---|---|---|---|---|
🔴 | /home/runner/work/bugsnag-js-performance/bugsnag-js-performance/packages/react-navigation/lib/react-navigation-native-plugin.ts | 0% (+0%) |
0% (-100%) |
0% (+0%) |
0% (+0%) |
Total:
Lines | Branches | Functions | Statements |
---|---|---|---|
91.38%(+0.37%) | 79.92%(-0.3%) | 91.89%(+0.23%) | 88.88%(+0.43%) |
Generated against 5de7ed70974e833cff5f7ec0e23538d09ec79743 on 18 January 2024 at 09:41:53 UTC
Goal
To add required attributes for navigation spans
Design
As the public
startNavigationSpan
method returns a span without any way to add attributes, this PR refactors the react navigation plugin to accept the span factory as part of it's configuration method, using all internal functionality to start and end spans, and add new attributes.Testing
Update existing unit tests to add assertions for new span attributes