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
{{ message }}
Repository navigation
Replace deprecated _INTERNAL_flushLogsBuffer with flushLogsBuffer #7108
@sentry/core is dropping its _INTERNAL_-prefixed exports (getsentry/sentry-javascript#26744). _INTERNAL_flushLogsBuffer is renamed to flushLogsBuffer. The old name stays as a deprecated alias for now because React Native still uses it. The alias can't be removed until we switch.
This is the only _INTERNAL_ export from @sentry/core that the RN SDK uses.
⚠️ This will be implemented in the next major.
Usages
packages/core/src/js/client.ts: called on the client's flush event and from the idle timer after afterCaptureLog, when enableLogs is on.
packages/core/test/client.test.ts: three tests use jest.spyOn(SentryCore, '_INTERNAL_flushLogsBuffer'). The export name is a string here, so the type checker won't catch it. Rename these by hand.
Replace _INTERNAL_flushLogsBuffer with flushLogsBuffer in client.ts and the test spies.
Tell the JS SDK team the alias is no longer used by RN, so it can be removed.
Notes
Users won't see any change, and no changelog entry is needed. We can make the switch as soon as the new name is released, before the next major if that's convenient. It is tracked for the next major because the JS SDK can only drop the alias after we switch.
changed the title [-]Next major: replace deprecated `_INTERNAL_flushLogsBuffer` with `flushLogsBuffer`[/-][+]Replace deprecated `_INTERNAL_flushLogsBuffer` with `flushLogsBuffer`[/+]on Nov 25, 2026
Activity
linear-code commentedon Nov 25, 2026
RN-888
[-]Next major: replace deprecated `_INTERNAL_flushLogsBuffer` with `flushLogsBuffer`[/-][+]Replace deprecated `_INTERNAL_flushLogsBuffer` with `flushLogsBuffer`[/+]