Generate low-cardinality SQL summaries for database spans
Maintainer thường phản hồi trong vòng 1 ngày
@lbloder đang làm issue này rồi.
Từ ngày 12/10/2026.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
Bắt đầu bằng cách xác định các điểm vào mô tả span của JDBC và Android SQLite, đồng thời theo dõi cách policy dataCollection.databaseQueryData hiệu lực được áp dụng. Truy vết các test hiện có, sau đó bổ sung coverage cho các operation được hỗ trợ, literal, placeholder, SQL không hợp lệ và cú pháp đặc thù của dialect. Hoàn tất có nghĩa là cả hai integration đều sử dụng summary an toàn khi raw collection bị tắt, không bao giờ làm lộ raw SQL khi xảy ra lỗi, và mọi mã analyzer được điều chỉnh đều được ghi nhận trong THIRD_PARTY_NOTICES.md.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
When dataCollection.databaseQueryData disables raw SQL collection, database spans lose their SQL description entirely. Keeping the raw statement is not safe because inline literals and other query values can contain sensitive data and create high-cardinality span descriptions.
We should provide useful, low-cardinality descriptions without retaining query values, for example:
SELECT usersUPDATE ordersINSERT products
This is follow-up work from #5801 and supports #5666.
Proposed solution
Add a SQL summarizer that extracts only a safe operation and target from a statement. Use the summary for JDBC and Android SQLite span descriptions when raw database query data is disabled. Preserve the full statement only when the effective Data Collection policy allows it.
Consider adapting OpenTelemetry Java's Apache-2.0 SQL query analyzer instead of depending on its incubating API. If code is adapted, include the required source attribution and update THIRD_PARTY_NOTICES.md.
The summarizer must fail closed: malformed or unsupported SQL must never fall back to the raw statement.
Acceptance criteria
- JDBC and Android SQLite spans use low-cardinality summaries when raw query collection is disabled.
- Summaries do not contain inline literals, bound values, comments, or other query values.
- Parsing covers common operations such as
SELECT,INSERT,UPDATE, andDELETE. - Malformed and unsupported SQL produces a generic description or no description, never the raw statement.
- Tests cover inline literals, placeholders, mixed literal-and-bound queries, malformed SQL, and representative dialect-specific syntax.
- Any adapted third-party code includes complete license attribution.
- Ngôn ngữ chính
- Kotlin
- Star
- 1.4k
- Fork
- 483
- Merge trung bình
- 2 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 202
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-java
-
Test the `sentry wizard` Android portCó thể đã có người làm @antonis đã nhận 1 ngày trước. Đang mởPlatform: Java
getsentry/sentry-java#6797 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Narrow and clean up Android consumer keep rulesCó thể đã có người làm @runningcode đã nhận 3 ngày trước. Đang mởAndroid Platform: Java
getsentry/sentry-java#6771 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Android Bug Platform: Java Waiting for: Product Owner
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
getsentry/sentry-java#6758 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Android Bug Platform: Java Replays
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
getsentry/sentry-java#6741 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Android Bug Platform: Java Replays
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 50/100
getsentry/sentry-java#6740 · 1 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-java
Issue tương tự
-
device-support good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Legacy Chat backups screen overlaps status and navigation barsCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
signalapp/Signal-Android#15150 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 91/100
simplex-chat/simplex-chat#8372 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
android:core
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
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 90/100
championswimmer/TwoFac#178 ·
Maintainer thường phản hồi trong vòng 1 ngày