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

Add droppedAttributesCount to spans #509

Closed gingerbenw closed 1 month ago

gingerbenw commented 1 month ago

Changeset

Add new droppedAttributesCount property to spans at delivery time

Testing

Update unit tests to assert on droppedAttributesCount

gingerbenw commented 1 month ago

~Currently awaiting changes in maze runner to support the new property in trace validation~

Property was incorrectly named dropped_attributes_count to match the protobuf definition, rather than the JSON serialised droppedAttributesCount. Updated to reflect this.

github-actions[bot] commented 1 month ago

Browser bundle size

NPM build

Package
Before 209.51 kB
After 210.37 kB
± +861 bytes ⚠️

CDN build

Unminified Minfied Minified + gzipped
Before 106.80 kB 40.27 kB 11.84 kB
After 107.36 kB 40.59 kB 11.88 kB
± +564 bytes ⚠️ +310 bytes ⚠️ +44 bytes ⚠️

Code coverage

Ok File (✨=New File) Lines Branches Functions Statements
🔴 /home/runner/work/bugsnag-js-performance/bugsnag-js-performance/packages/core/lib/span.ts 90.47%
(+0.23%)
83.33%
(-16.67%)
77.27%
(+1.08%)
90.47%
(+0.23%)

Total:

Lines Branches Functions Statements
87.84%(+0.02%) 78.66%(+0.08%) 86.85%(+0.05%) 85.97%(+0.02%)

Generated against 8a1b60e35d51e2086fa63c6fd543029417a00fac on 26 September 2024 at 09:24:53 UTC