GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ref(core): Drop unused internal exports and rename log/metric capture helpers by sentry-junior[bot] · Pull Request #26744 · getsentry/sentry-javascript

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 23, 2026 •
edited by mydea
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

What

Cleans up _INTERNAL_-prefixed exports from @sentry/core:

  • Removes INTERNAL_getSegmentSpan, which no other package uses.
  • Removes _INTERNAL_FLAG_BUFFER_SIZE and _INTERNAL_MAX_FLAGS_PER_SPAN, which only the browser and node feature flag integration tests imported. Each test package now defines the limits once.
  • Renames the log and metric helpers so the names say what they do. The old exported names stay as deprecated aliases (because e.g. electron or react native use them):
    • _INTERNAL_captureLog → captureLogEvent
    • _INTERNAL_captureMetric → captureMetricEvent
    • _INTERNAL_captureSerializedLog → bufferSerializedLog
    • _INTERNAL_captureSerializedMetric → bufferSerializedMetric
    • _INTERNAL_flushLogsBuffer → flushLogsBuffer
    • _INTERNAL_flushMetricsBuffer → flushMetricsBuffer
  • Renames _INTERNAL_getLogBuffer and _INTERNAL_getMetricBuffer to getLogBuffer and getMetricBuffer. They aren't exported from the package, so they get no alias.

Why

This is the first step in cleaning up _INTERNAL_-prefixed exports, which only add surface area. Removed symbols are still exported from their own modules, so core keeps using them internally.

Electron uses the capture helpers and React Native uses _INTERNAL_flushLogsBuffer, so the old names can't go yet. A follow-up can drop the aliases once those SDKs use the new names.

The new names avoid two problems with plain captureLog/captureMetric and captureSerialized*:

  • capture*Event runs the full pipeline: enrichment, beforeSendLog/beforeSendMetric, serialization, then a sink that defaults to the buffer. A bare captureMetric would read like a sibling of captureEvent/captureException, which return an event id and send their own envelope. It would also clash with the local captureMetric helpers in core's metrics/public-api.ts and in Electron.
  • bufferSerialized* does no processing. It only adds an already processed item to the client's buffer, which is how Electron's main process ingests items from the renderer.

_INTERNAL_getTunnelPaths was dropped by #26746. _INTERNAL_resetTunnelDefaults is test-only, but tests in several packages call it, so it stays.

via @mydea.

--

View Session [Sentry]

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@sentry-junior @mydea
ref(core): Drop unused and test-only internal exports
07aa13b
Remove _INTERNAL_captureSerializedLog, _INTERNAL_captureSerializedMetric,
_INTERNAL_captureMetric, INTERNAL_getSegmentSpan, _INTERNAL_getTunnelPaths,
_INTERNAL_FLAG_BUFFER_SIZE and _INTERNAL_MAX_FLAGS_PER_SPAN from the public
entry points. Nothing outside core uses them; the integration tests now
inline the two feature flag constants.

Co-Authored-By: Francesco Gringl-Novy <[email protected]>
@sentry-junior sentry-junior Bot assigned mydea Nov 23, 2026
@github-actions

github-actions Bot commented Nov 23, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

size-limit report 📦

Compared: 16ed3f6 (PR test merge using develop at cee40e6)

Against: cee40e6 (develop) · base run #67873

✅ Baseline matches: this diff contains only this PR's changes.

Path Size % Change Change
@sentry/browser 30.54 kB - -
@sentry/browser - with treeshaking flags 28.73 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 28.6 kB - -
@sentry/browser (incl. Tracing) 53.67 kB - -
@sentry/browser (incl. Tracing Core) 40.59 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 53.67 kB - -
@sentry/browser (incl. Tracing, Profiling) 56.57 kB - -
@sentry/browser (incl. Tracing, Replay) 93.6 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 82.46 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 98.43 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 111.4 kB - -
@sentry/browser (incl. Feedback) 48.4 kB - -
@sentry/browser (incl. sendFeedback) 31.11 kB - -
@sentry/browser (incl. FeedbackAsync) 36.17 kB - -
@sentry/browser (incl. Metrics) 31.86 kB - -
@sentry/browser (incl. Logs) 32.13 kB - -
@sentry/browser (incl. Metrics & Logs) 32.8 kB - -
@sentry/react 32.56 kB - -
@sentry/react (incl. Tracing) 56.38 kB - -
@sentry/vue 38.75 kB - -
@sentry/vue (incl. Tracing) 56.68 kB - -
@sentry/svelte 30.57 kB - -
@sentry/effect (client) 42.22 kB - -
@sentry/effect (client, incl. Tracing) 54.97 kB - -
@sentry/effect (client, incl. Tracing, Logs, Metrics) 66.31 kB - -
@sentry/remix (Remix 3 client bundle) 59.39 kB - -
CDN Bundle 32.54 kB - -
CDN Bundle (incl. Tracing) 54.15 kB - -
CDN Bundle (incl. Logs, Metrics) 35.27 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 56.63 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 76.22 kB - -
CDN Bundle (incl. Tracing, Replay) 91.94 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 94.47 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 97.39 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 99.86 kB - -
CDN Bundle - uncompressed 94.92 kB - -
CDN Bundle (incl. Tracing) - uncompressed 160.25 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 103.26 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 167.88 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 233.61 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 280.65 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 288.28 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 292.58 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 300.2 kB - -
@sentry/nextjs (client) 60.09 kB - -
@sentry/sveltekit (client) 55.03 kB - -
@sentry/core/server 45.83 kB - -
@sentry/core/browser 14.46 kB - -
@sentry/node 156.93 kB - -
@sentry/node/import (ESM hook with diagnostics-channel injection) 83.45 kB - -
@sentry/node - without tracing 89.81 kB - -
@sentry/node - without channel injection 145.9 kB +0.01% +4 B 🔺
@sentry/aws-serverless 100.44 kB -0.01% -1 B 🔽
@sentry/cloudflare (withSentry) - minified 211.89 kB -0.02% -40 B 🔽
@sentry/cloudflare (withSentry) 491.61 kB -0.04% -160 B 🔽
@sentry/cloudflare (withSentry, instrumented CommonJS package) - minified 214.84 kB -0.02% -40 B 🔽
@sentry/nextjs/cloudflare (withSentry) - minified 237.13 kB -0.02% -40 B 🔽

View base workflow run

sentry-junior[bot] reacted with eyes emoji
All reactions
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Nov 23, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Optional E2E tests

Some optional checks were not successful. They do not block the merge. 2 not successful, 81 successful. See the run.

Check Status
❌ CI: Optional E2E Tests / E2E nextjs-16-tunnel (cloudflare) Test (optional) Failing after 1m Details
❌ CI: Optional E2E Tests / E2E react-router-7-framework-instrumentation Test (optional) Failing after 1m Details
Successful checks
Check Status
✅ CI: Optional E2E Tests / E2E cloudflare-pi-durable Test (optional) Successful in 49s Details
✅ CI: Optional E2E Tests / E2E cloudflare-workers-send-to-sentry Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v2 (MCP SDK OpenTelemetry) Test (optional) Successful in 28s Details
✅ CI: Optional E2E Tests / E2E cloudflare-mastra Test (optional) Successful in 47s Details
✅ CI: Optional E2E Tests / E2E cloudflare-agent Test (optional) Successful in 42s Details
✅ CI: Optional E2E Tests / E2E express-5 (cloudflare) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E cloudflare-think (ai v6) Test (optional) Successful in 50s Details
✅ CI: Optional E2E Tests / E2E astro-7 (static trace lifecycle) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E cloudflare-pi-durable (latest) Test (optional) Successful in 52s Details
✅ CI: Optional E2E Tests / E2E node-flue (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E express-5 (bun) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-eve Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E hono-5 (cloudflare) Test (optional) Successful in 49s Details
✅ CI: Optional E2E Tests / E2E nestjs-12 (cloudflare) Test (optional) Successful in 37s Details
✅ CI: Optional E2E Tests / E2E express-5 (deno) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E fastify-5 (deno) Test (optional) Successful in 46s Details
✅ CI: Optional E2E Tests / E2E node-express-send-to-sentry (static trace lifecycle) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E cloudflare-workers-without-tracing-send-to-sentry Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-15 (latest) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E deno (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries (cloudflare) Test (optional) Successful in 39s Details
✅ CI: Optional E2E Tests / E2E cloudflare-think Test (optional) Successful in 54s Details
✅ CI: Optional E2E Tests / E2E hono-5 (bun) Test (optional) Successful in 47s Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries Test (optional) Successful in 45s Details
✅ CI: Optional E2E Tests / E2E cloudflare-flue-send-to-sentry Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E hono-5 Test (optional) Successful in 48s Details
✅ CI: Optional E2E Tests / E2E node-flue Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E debug-id-sourcemaps Test (optional) Successful in 33s Details
✅ CI: Optional E2E Tests / E2E nextjs-15 (turbo) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E fastify-5 (bun) Test (optional) Successful in 46s Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v2 Test (optional) Successful in 26s Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (vinext, bun) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-eve (content off) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E astro-7 Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-express-send-to-sentry Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5 (cloudflare) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nestjs-12 (bun) Test (optional) Successful in 56s Details
✅ CI: Optional E2E Tests / E2E nextjs-14-supabase Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries (latest) Test (optional) Successful in 43s Details
✅ CI: Optional E2E Tests / E2E node-openai-decisions Test (optional) Successful in 35s Details
✅ CI: Optional E2E Tests / E2E node-eve (orchestrion) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-pi-durable Test (optional) Successful in 38s Details
✅ CI: Optional E2E Tests / E2E node-eve (0.x) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-fastify-6 Test (optional) Successful in 34s Details
✅ CI: Optional E2E Tests / E2E hono-5 (deno) Test (optional) Successful in 45s Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps Test (optional) Successful in 40s Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (vinext) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nestjs-12 (deno) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-4-sourcemaps (Vite server) Test (optional) Successful in 37s Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v1 Test (optional) Successful in 37s Details
✅ CI: Optional E2E Tests / E2E nuxt-5 Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-openai-decisions (latest) Test (optional) Successful in 33s Details
✅ CI: Optional E2E Tests / E2E node-mastra (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5 (deno) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (client source maps kept) Test (optional) Successful in 41s Details
✅ CI: Optional E2E Tests / E2E nuxt-5 (kv-cache) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (cloudflare, latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5 (bun) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-mastra Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (client source maps enabled by Sentry) Test (optional) Successful in 36s Details
✅ CI: Optional E2E Tests / E2E node-pi-durable (latest) Test (optional) Successful in 39s Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (no upload) Test (optional) Successful in 37s Details
✅ CI: Optional E2E Tests / E2E nuxt-5 (development) Test (optional) Successful in 55s Details
✅ CI: Optional E2E Tests / E2E nuxt-5-tunnel (cloudflare) Test (optional) Successful in 31s Details
✅ CI: Optional E2E Tests / E2E nuxt-5-tunnel Test (optional) Successful in 45s Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (static / nuxt generate) Test (optional) Successful in 31s Details
✅ CI: Optional E2E Tests / E2E react-send-to-sentry Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E vinext-cf-workers (workers cache) Test (optional) Successful in 32s Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-sourcemaps (delete all) Test (optional) Successful in 36s Details
✅ CI: Optional E2E Tests / E2E solid-2-ssr (cloudflare) Test (optional) Successful in 38s Details
✅ CI: Optional E2E Tests / E2E solidstart-2 (no upload) Test (optional) Successful in 42s Details
✅ CI: Optional E2E Tests / E2E solidstart-2-tunnel Test (optional) Successful in 49s Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-sourcemaps Test (optional) Successful in 36s Details
✅ CI: Optional E2E Tests / E2E solidstart-2 (delete all) Test (optional) Successful in 46s Details
✅ CI: Optional E2E Tests / E2E solidstart-2 Test (optional) Successful in 53s Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-sourcemaps (no upload) Test (optional) Successful in 32s Details
✅ CI: Optional E2E Tests / E2E vue-3 (no Options API) Test (optional) Successful in 50s Details
✅ CI: Optional E2E Tests / E2E solidstart-2 (manual upload) Test (optional) Successful in 37s Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-sourcemaps (manual upload) Test (optional) Successful in 27s Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-cloudflare Test (optional) Successful in 36s Details
sentry-junior[bot] reacted with eyes emoji
All reactions
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

mydea
mydea reviewed Nov 23, 2026
View reviewed changes
Comment thread ...ser-integration-tests/suites/integrations/featureFlags/openfeature/onError/errorHook/test.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@sentry-junior sentry-junior Bot mentioned this pull request Nov 23, 2026
ref(core): Drop the internal prefix from tunnel exports #26746
Merged
@sentry-junior
test: Share the feature flag limits in the integration test packages
1042c9c
mydea
mydea reviewed Nov 23, 2026
View reviewed changes
Comment thread dev-packages/browser-integration-tests/utils/helpers.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@mydea
Apply suggestion from @mydea
4d9b31b
@mydea
mydea marked this pull request as ready for review November 23, 2026 09:41
@sentry-junior
test: Shorten the feature flag limits comment
dbc7979
@javascript-sdk-gitflow
javascript-sdk-gitflow Bot requested review from Lms24, logaretm and msonnb November 23, 2026 09:41
Lms24
Lms24 reviewed Nov 23, 2026
View reviewed changes
Comment thread packages/core/src/index.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@msonnb

msonnb commented Nov 23, 2026

Copy link
Copy Markdown
Member

_INTERNAL_captureSerializedLog, _INTERNAL_captureSerializedMetric, and _INTERNAL_captureMetric are still being used in the Electron SDK. We should probably replace them there first.

sentry-junior[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sentry-junior sentry-junior Bot mentioned this pull request Nov 23, 2026
PR feedback gets 👀 but no reply on GitHub getsentry/junior#4108
Open
@mydea

mydea commented Nov 24, 2026

Copy link
Copy Markdown
Member

_INTERNAL_captureSerializedLog, _INTERNAL_captureSerializedMetric, and _INTERNAL_captureMetric are still being used in the Electron SDK. We should probably replace them there first.

damn, great finding. let's keep these as deprecated variants them and add the non-internal variant here, then we can eventually remove them in a follow up.

sentry-junior[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

mydea added a commit that referenced this pull request Nov 24, 2026
@sentry-junior @mydea
ref(core): Drop the internal prefix from tunnel exports (#26746)
33ae1de
## What

Drops the `_INTERNAL_` prefix from the managed tunnel helpers in
`@sentry/core`, `@sentry/core/server` and `@sentry/server-utils`, and
from the tunnel setters that framework build plugins inject
(`setTunnelDefaults` on `@sentry/astro/middleware`, `setTunnelBasePath`
on `@sentry/react-router`, `setTunnelRoute` on
`@sentry/tanstackstart-react`). Removes `_INTERNAL_installTunnelHooks`
from `@sentry/node` and `_INTERNAL_getTunnelPaths` from
`@sentry/core/server`.

## Why

`@sentry/core` and `@sentry/server-utils` are internal packages, so
their exports don't need a prefix to warn users off. The framework
tunnel setters aren't brittle enough to warrant one either.

- `_INTERNAL_installTunnelHooks` was a thin wrapper around server-utils'
`instrumentTunnelServers`. It also leaked into every SDK that re-exports
`@sentry/node`. Next.js and TanStack Start already depend on
`@sentry/server-utils`, so they now call it directly.
- `_INTERNAL_getTunnelPaths` had no users outside core.
#26744 removes it as well, so the two PRs
make the same change to that line.
- Nothing else could move or be removed:
- `applyBrowserTunnelDefaults` stays on the main `@sentry/core` entry,
not `/browser`, because the frameworks' shared `common/tunnel.ts`
modules also run at build time and on the server.
- The Node handler (`handleServedNodeTunnelRequest`,
`setNodeTunnelHandler`, `httpServerHandlesTunnel`) stays in core. It
shares the request/response conversion with
`handleTunnelRequestIfMatched`, and core's HTTP server instrumentation
reads it from the shared tunnel store.
- `resetTunnelDefaults` is only used by tests, but tests in five
packages need it to reset shared state.

<!-- junior-request-attribution:start -->
via @mydea.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:slack%3AC0C22CSDV6X%3A1795423564.677139 -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/slack%3AC0C22CSDV6X%3A1795423564.677139)
[[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0C22CSDV6X%3A1795423564.677139/?project=4510944073809921)

<!-- junior-session-footer:end -->

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Francesco Gringl-Novy <[email protected]>
@sentry-junior @mydea
ref(core): Keep log and metric capture helpers as deprecated aliases
0a6ff37
The Electron SDK still uses _INTERNAL_captureSerializedLog,
_INTERNAL_captureSerializedMetric and _INTERNAL_captureMetric. Export them
as captureSerializedLog, captureSerializedMetric and captureMetric, and keep
the old names as deprecated aliases until Electron moves over.

Co-Authored-By: Francesco Gringl-Novy <[email protected]>
@sentry-junior

sentry-junior Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

Done in 0a6ff37. @sentry/core now exports captureSerializedLog, captureSerializedMetric and captureMetric, and keeps _INTERNAL_captureSerializedLog, _INTERNAL_captureSerializedMetric and _INTERNAL_captureMetric as deprecated aliases with a TODO(v12) to drop them once Electron moves over. Thanks @msonnb for catching the Electron usage.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

msonnb
msonnb approved these changes Nov 25, 2026
View reviewed changes
sentry-junior Bot and others added 2 commits November 25, 2026 08:33
@sentry-junior
Merge remote-tracking branch 'origin/develop' into feat/core-drop-unu…
784780e
…sed-internal-exports

Co-Authored-By: Francesco Gringl-Novy <[email protected]>

# Conflicts:
#	packages/core/src/server.ts
@sentry-junior @mydea
ref(core): Rename the log and metric capture helpers to say what they do
2740679
captureMetric becomes captureMetricEvent, so it no longer reads like a
sibling of captureEvent and doesn't clash with the local captureMetric
helpers in core and Electron. captureSerializedLog and
captureSerializedMetric become bufferSerializedLog and
bufferSerializedMetric: they only add an already processed item to the
client's buffer. The deprecated _INTERNAL_ aliases point at the new names.

Co-Authored-By: Francesco Gringl-Novy <[email protected]>
@sentry-junior sentry-junior Bot changed the title ref(core): Drop unused and test-only internal exports ref(core): Drop unused internal exports and rename log/metric capture helpers Nov 25, 2026
@sentry-junior @mydea
ref(core): Drop the prefix from the log and metric buffer helpers
43a3295
Rename _INTERNAL_captureLog to captureLogEvent, to match
captureMetricEvent, and drop the _INTERNAL_ prefix from the flush and get
buffer helpers for logs and metrics. Electron uses _INTERNAL_captureLog and
React Native uses _INTERNAL_flushLogsBuffer, so the exported ones keep
deprecated aliases. The get buffer helpers are not exported from the
package, so they are renamed outright.

Co-Authored-By: Francesco Gringl-Novy <[email protected]>
@antonis antonis mentioned this pull request Nov 25, 2026
Replace deprecated _INTERNAL_flushLogsBuffer with flushLogsBuffer getsentry/sentry-react-native#7108
Open
3 tasks
antonis
antonis approved these changes Nov 25, 2026
View reviewed changes

@antonis antonis left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Thanks for the heads-up @mydea 🙇

We checked the React Native SDK and the only INTERNAL export we use is _INTERNAL_flushLogsBuffer (in our client, plus a few test spies).

Since we are still on JS v10 I've opened a follow up issue to remove that too in our next major getsentry/sentry-react-native#7108

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

sentry-junior[bot] reacted with eyes emoji
All reactions
  • 👀 1 reaction
timfish
timfish approved these changes Nov 25, 2026
View reviewed changes
@mydea
mydea merged commit d51eabe into develop Nov 25, 2026
908 of 913 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@mydea
mydea deleted the feat/core-drop-unused-internal-exports branch November 25, 2026 11:20
@sentry-release-bot sentry-release-bot Bot mentioned this pull request Nov 25, 2026
publish: getsentry/[email protected] getsentry/publish#10573
Closed
51 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@mydea mydea mydea left review comments
@Lms24 Lms24 Lms24 left review comments
@antonis antonis antonis approved these changes
@timfish timfish timfish approved these changes
@msonnb msonnb msonnb approved these changes
@logaretm logaretm Awaiting requested review from logaretm

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@mydea mydea

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@msonnb @mydea @antonis @timfish @Lms24
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.