You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This only affects the JavaScript OpenTelemetry library
This may affect other libraries, but I would like to get opinions here first
Zone.js which is used for context management in the browser fails to maintain context across async/await syntax. The docs currently state that you have to transpile to ES2015 to get it to work. But in actuality you only need to transpile down async/await and async generators syntax AFAIK. For example using esbuild's supported.{async-await,async-genetator} options, or using a Babel plugin. Which is what the Angular CLI does.
In general Zone.js is not perfect and can cause a performance hit in some cases, so hopefully sometime in our lifetime, native async context will be available in the browser.
The text was updated successfully, but these errors were encountered:
Zone.js which is used for context management in the browser fails to maintain context across async/await syntax. The docs currently state that you have to transpile to ES2015 to get it to work. But in actuality you only need to transpile down async/await and async generators syntax AFAIK. For example using esbuild's
supported.{async-await,async-genetator}
options, or using a Babel plugin. Which is what the Angular CLI does.In general Zone.js is not perfect and can cause a performance hit in some cases, so hopefully sometime in our lifetime, native async context will be available in the browser.
The text was updated successfully, but these errors were encountered: