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
5 stars 3 forks source link

[PLAT-12231] Browser error correlation #461

Closed gingerbenw closed 5 months ago

gingerbenw commented 5 months ago

Goal

Implement error correlation for browser performance

Design

Call addOnError from bugsnag notifier when provided as a configuration option

Changeset

Added new bugsnag configuration option to core client

Testing

Added unit tests for adding span and trace id to a reported error

github-actions[bot] commented 5 months ago

Browser bundle size

NPM build

Package
Before 188.88 kB
After 190.22 kB
± +1,342 bytes ⚠️

CDN build

Unminified Minfied Minified + gzipped
Before 94.81 kB 35.55 kB 10.77 kB
After 95.42 kB 35.80 kB 10.84 kB
± +606 bytes ⚠️ +251 bytes ⚠️ +72 bytes ⚠️

Code coverage

Ok File (✨=New File) Lines Branches Functions Statements
🔴 /home/runner/work/bugsnag-js-performance/bugsnag-js-performance/packages/core/lib/config.ts 78.12%
(+0.71%)
82.6%
(+1.65%)
50%
(+7.15%)
78.78%
(+0.66%)
🔴 /home/runner/work/bugsnag-js-performance/bugsnag-js-performance/packages/core/lib/core.ts 100%
(+0%)
88.88%
(+8.88%)
92.85%
(+0.55%)
98.24%
(+0.17%)

Total:

Lines Branches Functions Statements
87.26%(+0.04%) 79.09%(+0.2%) 88.04%(+0.05%) 84.08%(+0.05%)

Generated against 30560ee7cccb10e5b33d43ea9367c63bb909cdb5 on 17 June 2024 at 14:01:50 UTC

gingerbenw commented 5 months ago

Could we add a maze runner test for this?

Covered in PLAT-12233