Grafana Faro moves its web SDK to OpenTelemetry JS 3.0, uncovering Jest and XHR bugs

A developer has opened three pull requests to migrate Grafana Faro's web SDK to OpenTelemetry JS SDK 3.0, which only works with its matching experimental and API packages. The version bump itself was simple, but a deep import rejected by the new exports map and test-environment problems took most of the effort. Jest with jsdom was silently loading OpenTelemetry's Node builds, and a disabled XHR instrumentation kept creating spans because of a missing check. Testing against real instrumentation exposed that bug, which predated the upgrade. The tracing bundle grew modestly, and the packages were verified in webpack and Vite apps, but all three pull requests remain open awaiting review.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.



Discussion (0)
Log in to join the discussion and vote.
Log in