Provide a restrictive dataCollection baseline that also covers keys added in minor releases
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
- #25742 của @sentry-junior — đã đóng, không merge
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, typescript
- Lĩnh vực
- backend-api-design
Hướng nghiên cứu
Start by reading the dataCollection option definitions and resolveDataCollectionOptions, which the issue names as the place that may apply defaults and fallbacks. Compare the proposed exported restrictive object with a resolver flag, including how replacement keys such as mcp inherit genAI settings. Done means choosing and implementing a baseline that keeps newly added keys off without breaking those fallbacks; the issue does not identify specific files or tests.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
In v11, dataCollection replaces sendDefaultPii. Its defaults collect more data than v10 did. To keep the v10 behavior, users must set each key to a restrictive value manually (see Keeping the v10 default behavior).
This causes two problems:
- No single option keeps the v10 behavior. Users must copy the full object from the migration guide and keep it up to date.
- When a minor release adds a new
dataCollectionkey, the new key collects by default. Users who turned off each key manually start to send the new data after they upgrade, with no change to their config.
Proposal
Export an object that we maintain, with a restrictive value for each key. Users spread it and turn on only what they want. A new key is then off by default:
Sentry.init({
dataCollection: {
...Sentry.dataCollectionOff, // name TBD
genAI: { inputs: true, outputs: false },
},
});
Open questions
- Which baseline do we use: all keys off, or the v10 defaults? "All off" also turns off
stackFrameVariablesandframeContextLines, which v10 collected. - Some keys replace an older key in a minor release and fall back to it when they are not set. For example,
mcpfalls back togenAI. If the exported object setsmcptofalse, a user who setsgenAI: { inputs: true }no longer gets MCP inputs, and no warning tells them. One alternative is a flag that the SDK resolves, for exampledataCollection: { defaults: 'off' }. ThenresolveDataCollectionOptionscan apply the fallbacks before it turns off the keys that are not set.
- Ngôn ngữ chính
- TypeScript
- Star
- 8.8k
- Fork
- 1.9k
- Merge trung bình
- 1 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 744
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getsentry/sentry-javascript
-
AWS Lambda Waiting for: Product Owner
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
getsentry/sentry-javascript#26910 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Only create Nuxt database and storage spans when there is a parent spanCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởImprovement Nuxt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
getsentry/sentry-javascript#25805 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Only create Cloudflare storage and D1 db spans when there is a parent spanCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởCloudflare Workers Improvement Spans
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
getsentry/sentry-javascript#25804 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Core Feature: Typescript Meta: Breaking
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
getsentry/sentry-javascript#25286 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
javascript
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
getsentry/sentry-javascript#24200 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của getsentry/sentry-javascript
Issue tương tự
-
foreground-up-signals-live: delivery-repair cell expects a spawn suggestion status no longer printsĐang mởbug triage:owned
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
e2e-failure ready-to-code
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
redhat-developer/rhdh-plugin-export-overlays#4905 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
directus/directus#28558 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
review: medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
1lck/Lithe-IDEA#2432 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
cloudflare/workers-sdk#17189 ·
Maintainer thường phản hồi trong vòng 1 ngày