Title: Use new `process.on('SIGTERM')` to flush on Vercel · Issue #17567 · getsentry/sentry-javascript · GitHub
Open Graph Title: Use new `process.on('SIGTERM')` to flush on Vercel · Issue #17567 · getsentry/sentry-javascript
X Title: Use new `process.on('SIGTERM')` to flush on Vercel · Issue #17567 · getsentry/sentry-javascript
Description: Description See https://vercel.com/changelog/vercel-functions-now-support-graceful-shutdown, Vercel has added a new way to handle graceful shutdown. We should use it to flush events in Sentry effectively: process.on('SIGTERM', () => { Se...
Open Graph Description: Description See https://vercel.com/changelog/vercel-functions-now-support-graceful-shutdown, Vercel has added a new way to handle graceful shutdown. We should use it to flush events in Sentry effec...
X Description: Description See https://vercel.com/changelog/vercel-functions-now-support-graceful-shutdown, Vercel has added a new way to handle graceful shutdown. We should use it to flush events in Sentry effec...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/17567
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Use new `process.on('SIGTERM')` to flush on Vercel","articleBody":"### Description\n\nSee https://vercel.com/changelog/vercel-functions-now-support-graceful-shutdown, Vercel has added a new way to handle graceful shutdown. We should use it to flush events in Sentry effectively:\n\n```js\nprocess.on('SIGTERM', () => {\n Sentry.flush();\n});\n```\n\nThings to figure out:\n\n* Where should we call this? I guess this is not Next.js specific. So I would propose to add this in both Node as well as vercel-edge SDKs guarded by an env-var check for [`process.env.VERCEL`](https://vercel.com/docs/environment-variables/system-environment-variables#VERCEL)?\n* We should test that this actually works (in both edge and node)\n* We should remove eventually remaining code to handle this in a more hacky way, using waitUntil or similar for vercel","author":{"url":"https://github.com/mydea","@type":"Person","name":"mydea"},"datePublished":"2025-09-09T06:54:12Z","url":"https://github.com/getsentry/sentry-javascript/issues/17567"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d8250198-e8df-60fa-d52e-ce10a9d0831f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9C0A:2AA566:60004B:86C595:6B044847 |
| html-safe-nonce | 4a866e3d73e45bb550cb81db6fcd34fc75f6d82931107ac68c85285530906547 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzBBOjJBQTU2Njo2MDAwNEI6ODZDNTk1OjZCMDQ0ODQ3IiwidmlzaXRvcl9pZCI6IjY3Mzc5NTI2NDE0NDk3NDAzNTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8d1c791828186df5a3534c530c286947f4e0ed2a6ad0ef92fb4fbfe14f9c76f0 |
| hovercard-subject-tag | issue:3396939473 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/17567/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0e13b5761c174b76e9cf8cbc6b9f75c04c0d9e0f841703d93be5fd213ccbe7a5/getsentry/sentry-javascript/issues/17567 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0e13b5761c174b76e9cf8cbc6b9f75c04c0d9e0f841703d93be5fd213ccbe7a5/getsentry/sentry-javascript/issues/17567 |
| og:image:alt | Description See https://vercel.com/changelog/vercel-functions-now-support-graceful-shutdown, Vercel has added a new way to handle graceful shutdown. We should use it to flush events in Sentry effec... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mydea |
| hostname | github.com |
| expected-hostname | github.com |
| None | d4495c3631faba668036f176d1f5946901c5172efd73a6edb984029e7d4f8e46 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9ac4337fb7c6a5846cdfdb1a04f154d3c33ebc77 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width