Title: Flush log buffer in base Client.close() · Issue #19347 · getsentry/sentry-javascript · GitHub
Open Graph Title: Flush log buffer in base Client.close() · Issue #19347 · getsentry/sentry-javascript
X Title: Flush log buffer in base Client.close() · Issue #19347 · getsentry/sentry-javascript
Description: Problem When client.close() is called, the log buffer is not flushed. The close() method in platform SDKs (node-core, deno) only removes the exit event listener but doesn't call _INTERNAL_flushLogsBuffer(this). This means pending logs ca...
Open Graph Description: Problem When client.close() is called, the log buffer is not flushed. The close() method in platform SDKs (node-core, deno) only removes the exit event listener but doesn't call _INTERNAL_flushLogs...
X Description: Problem When client.close() is called, the log buffer is not flushed. The close() method in platform SDKs (node-core, deno) only removes the exit event listener but doesn't call _INTERNAL_flush...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/19347
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Flush log buffer in base Client.close()","articleBody":"## Problem\n\nWhen `client.close()` is called, the log buffer is not flushed. The `close()` method in platform SDKs (node-core, deno) only removes the exit event listener but doesn't call `_INTERNAL_flushLogsBuffer(this)`. This means pending logs can be lost if someone explicitly closes the client.\n\n## Proposed Solution\n\nAdd `_INTERNAL_flushLogsBuffer(this)` to the base `Client.close()` in `packages/core/src/client.ts` so all SDKs benefit automatically, rather than fixing it in each platform SDK individually.\n\n## References\n\n- Discussion: https://github.com/getsentry/sentry-javascript/pull/19313#discussion_r2811358423\n- Node-core client: `packages/node-core/src/sdk/client.ts` (same pattern)\n- Deno client: `packages/deno/src/client.ts` (same pattern)","author":{"url":"https://github.com/sergical","@type":"Person","name":"sergical"},"datePublished":"2026-02-16T16:24:46Z","url":"https://github.com/getsentry/sentry-javascript/issues/19347"}
| 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:5110ecab-2aaa-f13e-6d8d-483825a78be8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E5EC:73F1E:A10D46:E24382:6B042FF7 |
| html-safe-nonce | eb94d333c0be54c6c3fdb75e081b21675a44a5f9d896a19fd01ae7fb16a2773e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUVDOjczRjFFOkExMEQ0NjpFMjQzODI6NkIwNDJGRjciLCJ2aXNpdG9yX2lkIjoiMTExNDYxMzcxMzgzNjcxNjAyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3eb52446ce75555a5ffda86851637327521e54239c30dba25a3c3db6cc325761 |
| hovercard-subject-tag | issue:3948552933 |
| 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/19347/issue_layout |
| twitter:image | https://opengraph.githubassets.com/076ea8652eced2c5984a7706c339a8140efd99007eb7f50c9aadecad03449f0a/getsentry/sentry-javascript/issues/19347 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/076ea8652eced2c5984a7706c339a8140efd99007eb7f50c9aadecad03449f0a/getsentry/sentry-javascript/issues/19347 |
| og:image:alt | Problem When client.close() is called, the log buffer is not flushed. The close() method in platform SDKs (node-core, deno) only removes the exit event listener but doesn't call _INTERNAL_flushLogs... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sergical |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| 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 | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| 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