Title: AWS Lambda `_endSpan`/`forceFlush()` can block handler indefinitely · Issue #20063 · getsentry/sentry-javascript · GitHub
Open Graph Title: AWS Lambda `_endSpan`/`forceFlush()` can block handler indefinitely · Issue #20063 · getsentry/sentry-javascript
X Title: AWS Lambda `_endSpan`/`forceFlush()` can block handler indefinitely · Issue #20063 · getsentry/sentry-javascript
Description: The vendored AwsLambdaInstrumentation._endSpan calls tracerProvider.forceFlush() without any timeout. Because _endSpan sits in the promise chain before wrapHandler's flush(2000), a hung forceFlush() blocks the Lambda from ever returning,...
Open Graph Description: The vendored AwsLambdaInstrumentation._endSpan calls tracerProvider.forceFlush() without any timeout. Because _endSpan sits in the promise chain before wrapHandler's flush(2000), a hung forceFlush(...
X Description: The vendored AwsLambdaInstrumentation._endSpan calls tracerProvider.forceFlush() without any timeout. Because _endSpan sits in the promise chain before wrapHandler's flush(2000), a hung forceFl...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/20063
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AWS Lambda `_endSpan`/`forceFlush()` can block handler indefinitely","articleBody":"The vendored `AwsLambdaInstrumentation._endSpan` calls `tracerProvider.forceFlush()` without any timeout. \n\nBecause `_endSpan` sits in the promise chain before wrapHandler's `flush(2000)`, a hung `forceFlush()` blocks the Lambda from ever returning, causing it to sit idle until the Lambda runtime kills it at its configured timeout.\n\nWe got the [original report on discord](https://discord.com/channels/621778831602221064/1488407219035701358).","author":{"url":"https://github.com/logaretm","@type":"Person","name":"logaretm"},"datePublished":"2026-03-31T20:44:55Z","url":"https://github.com/getsentry/sentry-javascript/issues/20063"}
| 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:c9ed151e-2efb-5869-f9d2-5cf001ddfa0b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9EB0:1697DC:7AD29C:A55DBE:6B04A552 |
| html-safe-nonce | 5840eb6c33e7d2aca93adac7ec77f71ab71d0207d0126c3b888d95a326884446 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RUIwOjE2OTdEQzo3QUQyOUM6QTU1REJFOjZCMDRBNTUyIiwidmlzaXRvcl9pZCI6IjY2NDk3Mjg1NDU2OTY1NTYzNzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7ecc28f4a6b6ffff4f175a15747bdf5cd09f29451c7cb53493ed64390632aff7 |
| hovercard-subject-tag | issue:4182239213 |
| 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/20063/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8496bba06fd2ca9b64d1354383fb501a8ff19b16362b7c220599bb62d97ea6be/getsentry/sentry-javascript/issues/20063 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8496bba06fd2ca9b64d1354383fb501a8ff19b16362b7c220599bb62d97ea6be/getsentry/sentry-javascript/issues/20063 |
| og:image:alt | The vendored AwsLambdaInstrumentation._endSpan calls tracerProvider.forceFlush() without any timeout. Because _endSpan sits in the promise chain before wrapHandler's flush(2000), a hung forceFlush(... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | logaretm |
| hostname | github.com |
| expected-hostname | github.com |
| None | 188497a0f45a7aa8f7c866faa1950d1a7f8d82b59416adf549b222ad1d1dd19b |
| 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 | 557cfbac6cdb532730c95c90f2cefdc0c4128029 |
| 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