Skip to content

Client always bundles log/metric flush code #26145

Closed

Description

@sentry-junior

The Client constructor in packages/core/src/client.ts (L318–327) always calls setupWeightBasedFlushing for both logs and metrics. That statically pulls _INTERNAL_flushLogsBuffer / _INTERNAL_flushMetricsBuffer, the log and metric envelope builders, and the size estimators into every bundle, even when an app never captures a log or metric.

via @BYK.

--

View Session in Sentry

Activity

  1. linear-code commented on Nov 5, 2026

    @linear-code
  2. added a commit that references this issue on Nov 6, 2026
    6ffdf10
  3. added a commit that references this issue on Nov 9, 2026
    ea35ec6
  4. github-actions commented on Nov 10, 2026

    @github-actions
    Contributor

    A PR closing this issue has just been released 🚀

    This issue was referenced by PR #26146, which was included in the 11.12.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions