grafana / faro-web-sdk

The Grafana Faro Web SDK, part of the Grafana Faro project, is a highly configurable web SDK for real user monitoring (RUM) that instruments browser frontend applications to capture observability signals. Frontend telemetry can then be correlated with backend and infrastructure data for full-stack observability.
https://grafana.com/oss/faro/
Apache License 2.0
690 stars 62 forks source link

chore(sessions): remove structured clone #536

Closed codecapitano closed 3 months ago

codecapitano commented 3 months ago

Why

Structured clone. caused issues in sandboxes which wrap some things in proxy objects.

JSON.stringify omits invalid objects or sets them to null.

Did no own benchmarks but scimming a bit trhrough teh web it seems that we don't gain any performance benefits when using structuredClone.

Last but not list this simplifies the code and we get reid of statement as well.

What

Links

Checklist