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

set parent context of full page loads from traceparent meta #446

Closed djskinner closed 1 month ago

djskinner commented 2 months ago

Goal

Aligning with the existing OpenTelemetry advice for this response propagation, we will use a meta tag in the page HTML, with name="traceparent" and content as the standard traceparent string to extract traceparent and set the traceid and root span parentid accordingly.

Design

Testing

github-actions[bot] commented 2 months ago

Browser bundle size

NPM build

Package
Before 187.76 kB
After 188.88 kB
± +1,116 bytes ⚠️

CDN build

Unminified Minfied Minified + gzipped
Before 94.13 kB 35.31 kB 10.68 kB
After 94.81 kB 35.55 kB 10.77 kB
± +675 bytes ⚠️ +238 bytes ⚠️ +94 bytes ⚠️

Code coverage

Coverage values did not change👌.

Total:

Lines Branches Functions Statements
87.22%(+0.06%) 78.89%(+0.19%) 87.99%(+0.03%) 84.03%(+0.07%)

Generated against 791f3fa1e29df92ead98a565e3dc2bdb600d83f0 on 15 May 2024 at 08:39:57 UTC