faro-web-sdk
faro-web-sdk copied to clipboard
Included version of zone.js removes Promise.withResolvers
Description
Promise.withResolvers is broken by the included version of zone.js via @opentelemetry/context-zone.
See https://github.com/open-telemetry/opentelemetry-js/issues/4354 for details.
Steps to reproduce
In an app with @grafana/faro-web-tracing 1.8.2, type Promise.withResolvers in the console.
Expected behavior
It is a function.
Actual behavior
It is undefined.
Environment
- SDK version: 1.8.2
Context
For a workaround, I added the following to my package.json:
"overrides": {
"@grafana/faro-web-tracing": {
"@opentelemetry/context-zone": "1.25.1"
}
}
I'm not sure if this is going to have any unwanted side-effects yet.