-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Next.js] Use OTEL for Vercel Edge SDK #13740
Comments
I did some work on this in #13742 to discover that EDIT: Got it working by bundling and putting the polyfill on top as a banner. |
**This PR is part of a stacked PR sequence as we need to do many changes at once for #8105. Merging this PR as is will create inconsistent data.** --- This PR will make the `@sentry/vercel-edge` SDK use OpenTelemetry performance under the hood. We need to employ a few hacks so that OpenTelemetry works on a worker runtime: - We are vendoring the OTEL `AsyncLocalStorageContextManage` because the original implementation depends on `AsyncLocalStorage` as exported from `async_hooks` which is not available in workers. In our vendored version we are taking it from `globalThis.AsyncLocalStorage`. - We are polyfilling `performance` with `Date.now()` as that API is not available in worker runtimes. Resolves #13740
Resolved with #13742 |
Description
We need this for Turbopack support.
The text was updated successfully, but these errors were encountered: