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

[PLAT-11983] Manual network span API #448

Closed gingerbenw closed 2 months ago

gingerbenw commented 2 months ago

Goal

add a new startNetworkSpan method to the core client update network span naming convention to [HTTP/VERB]

Testing

Add unit test for startNetworkSpan and attributes

github-actions[bot] commented 2 months ago

Browser bundle size

NPM build

Package
Before 184.72 kB
After 187.76 kB
± +3,045 bytes ⚠️

CDN build

Unminified Minfied Minified + gzipped
Before 92.92 kB 34.90 kB 10.52 kB
After 94.13 kB 35.31 kB 10.68 kB
± +1,210 bytes ⚠️ +404 bytes ⚠️ +156 bytes ⚠️

Code coverage

Ok File (✨=New File) Lines Branches Functions Statements
🔴 /home/runner/work/bugsnag-js-performance/bugsnag-js-performance/packages/core/lib/core.ts 100%
(+0%)
80%
(+0%)
92.3%
(+1.4%)
98.07%
(+0.25%)
🔴 ✨ /home/runner/work/bugsnag-js-performance/bugsnag-js-performance/packages/core/lib/network-span.ts 0%
(+0%)
100%
(+100%)
0%
(+0%)
0%
(+0%)
/home/runner/work/bugsnag-js-performance/bugsnag-js-performance/packages/core/lib/span-factory.ts 100%
(+0%)
96.87%
(+0.21%)
100%
(+0%)
98.75%
(+0.16%)
🔴 /home/runner/work/bugsnag-js-performance/bugsnag-js-performance/packages/platforms/browser/lib/auto-instrumentation/network-request-plugin.ts 93.87%
(-0.46%)
83.33%
(+0%)
100%
(+0%)
94.11%
(-0.43%)
🔴 /home/runner/work/bugsnag-js-performance/bugsnag-js-performance/packages/platforms/react-native/lib/auto-instrumentation/network-request-plugin.ts 80%
(-1.63%)
72.72%
(+0%)
100%
(+0%)
82.35%
(-1.28%)

Total:

Lines Branches Functions Statements
87.16%(-0.31%) 78.7%(+0.07%) 87.96%(-0.31%) 83.96%(-0.25%)

Generated against 57930dbd1f88d6564eb46e98e36f80f0fe1a43a3 on 1 May 2024 at 15:37:40 UTC