Skip to content

feat(core)!: Enable data collection by default (based on spec) - #22917

Draft
s1gr1d wants to merge 6 commits into
developfrom
sig/collect-data-based-on-spec
Draft

feat(core)!: Enable data collection by default (based on spec)#22917
s1gr1d wants to merge 6 commits into
developfrom
sig/collect-data-based-on-spec

Conversation

@s1gr1d

@s1gr1d s1gr1d commented Jul 31, 2026

Copy link
Copy Markdown
Member

First merge this PR (is merged): #22913

Enable the dataCollection specification defaults when neither dataCollection nor the legacy sendDefaultPii option is configured.

Tests and development test applications now rely on the new defaults instead of redundantly opting into userInfo and related data.

closes #22707

@s1gr1d
s1gr1d requested review from a team as code owners July 31, 2026 12:28
@s1gr1d
s1gr1d requested review from andreiborza, chargome, isaacs, logaretm and msonnb and removed request for a team July 31, 2026 12:28
@s1gr1d
s1gr1d marked this pull request as draft July 31, 2026 12:28
Base automatically changed from sig/remove-sendDefaultPii-unit-test to develop July 31, 2026 12:31
@github-actions

github-actions Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.

Path Size % Change Change
@sentry/browser 29.83 kB +0.02% +5 B 🔺
@sentry/browser - with treeshaking flags 28.03 kB +0.02% +4 B 🔺
@sentry/browser (incl. Tracing) 47.08 kB +0.02% +5 B 🔺
@sentry/browser (incl. Tracing + Span Streaming) 47.09 kB +0.02% +6 B 🔺
@sentry/browser (incl. Tracing, Profiling) 51.83 kB +0.01% +5 B 🔺
@sentry/browser (incl. Tracing, Replay) 86.4 kB +0.01% +5 B 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 75.83 kB +0.01% +5 B 🔺
@sentry/browser (incl. Tracing, Replay with Canvas) 91.12 kB +0.01% +6 B 🔺
@sentry/browser (incl. Tracing, Replay, Feedback) 103.77 kB +0.01% +5 B 🔺
@sentry/browser (incl. Feedback) 47.14 kB +0.02% +7 B 🔺
@sentry/browser (incl. sendFeedback) 34.67 kB +0.02% +4 B 🔺
@sentry/browser (incl. FeedbackAsync) 39.77 kB +0.02% +5 B 🔺
@sentry/browser (incl. Metrics) 30.9 kB +0.02% +4 B 🔺
@sentry/browser (incl. Logs) 31.13 kB +0.02% +4 B 🔺
@sentry/browser (incl. Metrics & Logs) 31.8 kB +0.02% +4 B 🔺
@sentry/react 31.62 kB +0.03% +7 B 🔺
@sentry/react (incl. Tracing) 49.33 kB +0.01% +4 B 🔺
@sentry/vue 34.74 kB +0.02% +4 B 🔺
@sentry/vue (incl. Tracing) 49.06 kB +0.02% +5 B 🔺
@sentry/svelte 29.86 kB +0.02% +5 B 🔺
CDN Bundle 31.87 kB +0.02% +6 B 🔺
CDN Bundle (incl. Tracing) 47.46 kB +0.02% +8 B 🔺
CDN Bundle (incl. Logs, Metrics) 33.43 kB +0.01% +3 B 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) 48.84 kB +0.03% +12 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) 72.79 kB +0.01% +4 B 🔺
CDN Bundle (incl. Tracing, Replay) 85.08 kB +0.01% +6 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 86.39 kB +0.01% +5 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 90.86 kB +0.01% +5 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.17 kB +0.01% +6 B 🔺
CDN Bundle - uncompressed 95.14 kB +0.03% +24 B 🔺
CDN Bundle (incl. Tracing) - uncompressed 142.36 kB +0.02% +24 B 🔺
CDN Bundle (incl. Logs, Metrics) - uncompressed 99.85 kB +0.03% +24 B 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 146.34 kB +0.02% +24 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 224.61 kB +0.02% +24 B 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed 261.62 kB +0.01% +24 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 265.58 kB +0.01% +24 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 275.32 kB +0.01% +24 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 279.28 kB +0.01% +24 B 🔺
@sentry/nextjs (client) 51.92 kB +0.01% +4 B 🔺
@sentry/sveltekit (client) 47.51 kB +0.02% +5 B 🔺
@sentry/core/server 79.77 kB +0.01% +6 B 🔺
@sentry/core/browser 51.71 kB +0.02% +6 B 🔺
@sentry/node 121.42 kB +0.01% +7 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 0 B added added
@sentry/node - without tracing 84.94 kB +0.04% +27 B 🔺
@sentry/aws-serverless 93.21 kB +0.04% +28 B 🔺
@sentry/cloudflare (withSentry) - minified 198.38 kB +0.02% +24 B 🔺
@sentry/cloudflare (withSentry) 487.78 kB +0.01% +34 B 🔺

View base workflow run

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

# Conflicts:
#	packages/browser/test/client.test.ts
#	packages/browser/test/integrations/httpclient.test.ts
#	packages/core/test/lib/integrations/supabase.test.ts
#	packages/core/test/lib/logs/internal.test.ts
#	packages/core/test/lib/metrics/internal.test.ts
#	packages/core/test/lib/tracing/spans/captureSpan.test.ts
#	packages/core/test/lib/tracing/spans/envelope.test.ts
#	packages/core/test/lib/utils/data-collection/resolveDataCollectionOptions.test.ts
#	packages/core/test/lib/utils/request.test.ts
#	packages/deno/test/deno-serve.test.ts
@s1gr1d

s1gr1d commented Jul 31, 2026

Copy link
Copy Markdown
Member Author

@BugBot run

@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 3f91785. Configure here.

createEsmAndCjsTests(__dirname, 'server.mjs', 'instrument-with-datacollection.mjs', (createRunner, test) => {
test('applies request data attributes when using dataCollection config', async () => {
createEsmAndCjsTests(__dirname, 'server.mjs', 'instrument.mjs', (createRunner, test) => {
test('applies request data attributes by default', async () => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Default path not actually tested

Medium Severity

The renamed test claims request data is applied by default, but it still runs instrument.mjs, which sets sendDefaultPii: true. That exercises the legacy bridge, not the new neither-option-set defaults, and duplicates the suite above it.

Additional Locations (1)
Fix in Cursor Fix in Web

Triggered by project rule: PR Review Guidelines for Cursor Bot

Reviewed by Cursor Bugbot for commit 3f91785. Configure here.

@s1gr1d s1gr1d changed the title feat(core): Enable data collection by default (based on spec) feat(core)!: Enable data collection by default (based on spec) Jul 31, 2026
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.

[v11] Switch dataCollection.userInfo default

1 participant