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

trace propagation #412

Closed djskinner closed 3 months ago

djskinner commented 4 months ago

Goal

Set traceparent header on intercepted network requests

Design

Changeset

Testing

github-actions[bot] commented 4 months ago

Browser bundle size

NPM build

Package
Before 180.09 kB
After 183.51 kB
± +3,421 bytes ⚠️

CDN build

Unminified Minfied Minified + gzipped
Before 87.01 kB 32.72 kB 10.01 kB
After 91.29 kB 34.23 kB 10.38 kB
± +4,279 bytes ⚠️ +1,509 bytes ⚠️ +370 bytes ⚠️

Code coverage

Ok File (✨=New File) Lines Branches Functions Statements
/home/runner/work/bugsnag-js-performance/bugsnag-js-performance/packages/core/lib/span-factory.ts 100%
(+0%)
96.66%
(+0%)
100%
(+0%)
98.59%
(+0.02%)
🔴 /home/runner/work/bugsnag-js-performance/bugsnag-js-performance/packages/platforms/browser/lib/id-generator.ts 88.88%
(-11.12%)
0%
(-100%)
100%
(+0%)
88.88%
(-11.12%)
🔴 /home/runner/work/bugsnag-js-performance/bugsnag-js-performance/packages/platforms/browser/lib/auto-instrumentation/network-request-plugin.ts 94.33%
(+0.79%)
83.33%
(+11.91%)
100%
(+0%)
94.54%
(+3.37%)
🔴 /home/runner/work/bugsnag-js-performance/bugsnag-js-performance/packages/request-tracker/lib/request-tracker-fetch.ts 84.84%
(+4.84%)
57.57%
(+7.57%)
70%
(-5%)
69.76%
(-3.57%)
🔴 /home/runner/work/bugsnag-js-performance/bugsnag-js-performance/packages/request-tracker/lib/request-tracker-xhr.ts 74.35%
(-4.43%)
54.54%
(+7.49%)
80%
(+0%)
57.62%
(-2.79%)
🔴 /home/runner/work/bugsnag-js-performance/bugsnag-js-performance/packages/request-tracker/lib/request-tracker.ts 95.45%
(-4.55%)
100%
(+0%)
100%
(+0%)
96.66%
(-3.34%)

Total:

Lines Branches Functions Statements
91.25%(+3.64%) 81.26%(+2.71%) 92.58%(+4.24%) 88.49%(+3.97%)

Generated against 165ca01a592e0f6ba3b63d5e4ccd35ba121d0dd8 on 25 March 2024 at 10:27:32 UTC