Add query tracing to LegacySession
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đá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
Hướng nghiên cứu
Start by reading LegacySession, ResponseFuture.get_query_trace() and get_all_query_traces(), and SessionBuilder.tracing_info_fetch_consistency(); the issue names these entry points but no file paths. First resolve the two stated design decisions about the returned trace type and query_cl behavior, then trace how the current driver fetches query traces. Done means the legacy methods block and return the agreed trace result, with the agreed consistency behavior; the issue does not name tests.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Add query tracing to LegacySession. ResponseFuture.get_query_trace() and get_all_query_traces() raise NotImplementedError now. The legacy API has no async, so the trace fetch must block. Refs #156.
Two design decisions come first.
1. What the trace methods return
- A new legacy
QueryTracetype with a blockingpopulate()method, similar tocassandra.query.QueryTrace. It wraps our trace fetch. Pro: same shape as the legacy driver. Con: one more type to maintain. (Preferred.) - The methods block and return our current
QueryTrace. Pro: no new type. Con: nopopulate(), so legacy code that calls it breaks.
2. What to do with query_cl
query_cl is the consistency level of the queries that read system_traces. Our fetch uses the session setting from SessionBuilder.tracing_info_fetch_consistency() and cannot change it for one call.
- Raise
NotImplementedErrorand tell the user to set the consistency on the session. Pro: simple and honest. Con: code that passesquery_clbreaks. (Preferred for now.) - Run the two
system_tracesqueries ourselves withquery_cl. Pro: full legacy behaviour. Con: a copy of the Rust driver's fetch logic. - Add an unstable Rust driver method that takes the consistency. Pro: one fetch for both APIs. Con: needs a Rust driver change and a dependency bump.
- Ngôn ngữ chính
- Rust
- Star
- 6
- Fork
- 8
- Merge trung bình
- 3 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 16
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Không 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 scylladb/python-rs-driver
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 60/100
scylladb/python-rs-driver#224 ·
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 75/100
scylladb/python-rs-driver#193 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
scylladb/python-rs-driver#246 · 7 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Optimize callbacksĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
scylladb/python-rs-driver#245 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 18/100
scylladb/python-rs-driver#242 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của scylladb/python-rs-driver
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
home-assistant/installer#308 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
swc-project/swc-next#1053 ·
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 78/100
nautechsystems/nautilus_trader#5387 ·
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 76/100
NomicFoundation/edr#1872 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
What happened to `check.py`?Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
linebender/resvg#1179 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày