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
feat(nuxt): Improve serverless event flushing and scope isolation (#14605)
Adds serverless (e.g. Vercel, Netlify) improvements:
- Cloining/forking the isolation context when needed
- flushing at the end of the h3 event handler and when an error happens
- using Vercel's `waitUntil` for waiting on Sentry events to send before
shutting down the function
// In environments where we cannot make use of OTel httpInstrumentation, we still need to ensure requests are properly isolated (e.g. when just importing the Sentry server config at the top level instead of `--import`).
21
+
// If OTel httpInstrumentation works, requests will be already isolated by the SentryHttpInstrumentation.
22
+
// We can identify this by comparing the current isolation scope to the default one. The requests are properly isolated if
23
+
// the current isolation scope is different from the default one. If that is not the case, we fork the isolation scope here.
0 commit comments