feat(core)!: Enable data collection by default (based on spec) - #22917
feat(core)!: Enable data collection by default (based on spec)#22917s1gr1d wants to merge 6 commits into
Conversation
size-limit report 📦
|
There was a problem hiding this comment.
We now collect 5 lines instead of 7. Based on spec: https://develop.sentry.dev/sdk/foundations/client/data-collection/#datacollection-options
# 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
|
@BugBot run |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ 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 () => { |
There was a problem hiding this comment.
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)
Triggered by project rule: PR Review Guidelines for Cursor Bot
Reviewed by Cursor Bugbot for commit 3f91785. Configure here.


First merge this PR (is merged): #22913
Enable the
dataCollectionspecification defaults when neitherdataCollectionnor the legacysendDefaultPiioption is configured.Tests and development test applications now rely on the new defaults instead of redundantly opting into
userInfoand related data.closes #22707