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.
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
structuredClone
and use the JSON method to deep copy objects.Links
Checklist