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-12669] Handle array values in attributes #501

Closed gingerbenw closed 1 month ago

gingerbenw commented 2 months ago

Goal

Support array values in span attributes

Changeset

Update attributeToJson internal method to convert arrays into arrayValue attributes, including mixed and empty arrays

Testing

github-actions[bot] commented 2 months ago

Browser bundle size

NPM build

Package
Before 196.14 kB
After 198.69 kB
± +2,547 bytes ⚠️

CDN build

Unminified Minfied Minified + gzipped
Before 98.89 kB 36.61 kB 11.07 kB
After 100.22 kB 36.99 kB 11.15 kB
± +1,335 bytes ⚠️ +385 bytes ⚠️ +83 bytes ⚠️

Code coverage

Ok File (✨=New File) Lines Branches Functions Statements
/home/runner/work/bugsnag-js-performance/bugsnag-js-performance/packages/core/lib/attributes.ts 97.36%
(+1.91%)
100%
(+0%)
90.9%
(+5.19%)
97.43%
(+1.78%)

Total:

Lines Branches Functions Statements
87.93%(+0.1%) 79.27%(+0.35%) 88.88%(+0.09%) 86.02%(+0.11%)

Generated against 3bc057eeec0ee519f79c743e589343f4208d6b7f on 10 September 2024 at 14:22:19 UTC