Skip to content

fix(core): Stop sending client reports for breadcrumbs - #24537

Merged
Lms24 merged 1 commit into
developfrom
lms/fix-core-breadcrumbs-client-report
Sep 21, 2026
Merged

Lms24 merged 1 commit into
developfrom
lms/fix-core-breadcrumbs-client-report

Conversation

@Lms24

@Lms24 Lms24 commented Sep 21, 2026

Copy link
Copy Markdown
Member

This PR removes the { reason: 'buffer_overflow', category: 'log_item' } client report the SDK sent when the breadcrumbs buffer (100 breadcrumbs limit) overflowed and we evicted breadcrumbs.

Why? When we started working on logs, we wanted to know how many breadcrumbs we currently discard due to the 100 crumbs limit. We used the new log_item data category for this and buffer_overflow reason. Later on, we added client reports for actual log discards and re-used this data category but sent different reasons. Meaning different telemtry items now fall into the same discard bucket as reported in #24510.

Since I don't think we still need to know about breadcrumb discards, and they're not their own telemetry items but part of errror and transaction events, I think we can just stop emitting client reports for them.

closes #24510

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit bb9bfe6. Configure here.

Comment thread packages/core/test/lib/client.test.ts
@Lms24 Lms24 self-assigned this Sep 21, 2026
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 29.07 kB -0.05% -14 B 🔽
@sentry/browser - with treeshaking flags 27.34 kB -0.07% -17 B 🔽
@sentry/browser - with treeshaking flags tracing without tracing 27.24 kB -0.07% -19 B 🔽
@sentry/browser (incl. Tracing) 50.55 kB -0.03% -15 B 🔽
@sentry/browser (incl. Tracing + Span Streaming) 50.56 kB -0.03% -14 B 🔽
@sentry/browser (incl. Tracing, Profiling) 53.55 kB -0.03% -15 B 🔽
@sentry/browser (incl. Tracing, Replay) 90.09 kB -0.03% -22 B 🔽
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 79.18 kB -0.04% -24 B 🔽
@sentry/browser (incl. Tracing, Replay with Canvas) 94.78 kB -0.03% -23 B 🔽
@sentry/browser (incl. Tracing, Replay, Feedback) 107.76 kB -0.03% -25 B 🔽
@sentry/browser (incl. Feedback) 46.6 kB -0.04% -15 B 🔽
@sentry/browser (incl. sendFeedback) 34.13 kB -0.05% -15 B 🔽
@sentry/browser (incl. FeedbackAsync) 39.25 kB -0.05% -16 B 🔽
@sentry/browser (incl. Metrics) 30.08 kB -0.05% -15 B 🔽
@sentry/browser (incl. Logs) 30.34 kB -0.05% -13 B 🔽
@sentry/browser (incl. Metrics & Logs) 31 kB -0.05% -14 B 🔽
@sentry/react 30.82 kB -0.06% -18 B 🔽
@sentry/react (incl. Tracing) 52.86 kB -0.05% -24 B 🔽
@sentry/vue 36.33 kB -0.04% -14 B 🔽
@sentry/vue (incl. Tracing) 52.84 kB -0.03% -14 B 🔽
@sentry/svelte 29.1 kB -0.06% -15 B 🔽
CDN Bundle 30.79 kB -0.05% -15 B 🔽
CDN Bundle (incl. Tracing) 51.08 kB -0.05% -23 B 🔽
CDN Bundle (incl. Logs, Metrics) 33.04 kB -0.05% -16 B 🔽
CDN Bundle (incl. Tracing, Logs, Metrics) 53.07 kB -0.05% -22 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) 73.73 kB -0.03% -16 B 🔽
CDN Bundle (incl. Tracing, Replay) 88.64 kB -0.03% -21 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 90.56 kB -0.03% -24 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) 94.67 kB -0.03% -21 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 96.69 kB -0.03% -22 B 🔽
CDN Bundle - uncompressed 91.1 kB -0.07% -57 B 🔽
CDN Bundle (incl. Tracing) - uncompressed 152.48 kB -0.04% -57 B 🔽
CDN Bundle (incl. Logs, Metrics) - uncompressed 97.67 kB -0.06% -57 B 🔽
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 158.43 kB -0.04% -57 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 227.08 kB -0.03% -57 B 🔽
CDN Bundle (incl. Tracing, Replay) - uncompressed 272.05 kB -0.03% -57 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 277.99 kB -0.03% -57 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 285.75 kB -0.02% -57 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 291.68 kB -0.02% -57 B 🔽
@sentry/nextjs (client) 55.19 kB -0.04% -21 B 🔽
@sentry/sveltekit (client) 50.98 kB -0.03% -14 B 🔽
@sentry/core/server 39.97 kB -0.08% -30 B 🔽
@sentry/core/browser 13.63 kB -0.24% -32 B 🔽
@sentry/node 133.33 kB -0.02% -18 B 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection) 82.15 kB -0.06% -42 B 🔽
@sentry/node - without tracing 89.92 kB -0.02% -13 B 🔽
@sentry/node - without channel injection 112.12 kB -0.02% -18 B 🔽
@sentry/aws-serverless 98.19 kB -0.02% -17 B 🔽
@sentry/cloudflare (withSentry) - minified 204.67 kB -0.04% -63 B 🔽
@sentry/cloudflare (withSentry) 509.34 kB -0.02% -71 B 🔽

View base workflow run

@Lms24
Lms24 requested review from a team, chargome, logaretm and stephanie-anderson and removed request for a team and stephanie-anderson September 21, 2026 10:37
@Lms24
Lms24 merged commit ec43b68 into develop Sep 21, 2026
325 of 326 checks passed
@Lms24
Lms24 deleted the lms/fix-core-breadcrumbs-client-report branch September 21, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Breadcrumb eviction in Scope.addBreadcrumb is reported as a discarded log_item (buffer_overflow)

2 participants