Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Add query tracing to LegacySession

Aperta
#243 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
python, rust
Ambito
backend, databases

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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 QueryTrace type with a blocking populate() method, similar to cassandra.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: no populate(), 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 NotImplementedError and tell the user to set the consistency on the session. Pro: simple and honest. Con: code that passes query_cl breaks. (Preferred for now.)
  • Run the two system_traces queries ourselves with query_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.
Lingua principale
Rust
Stelle
6
Fork
8
Merge medio
3g 21h
PR unite (30g)
16

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di scylladb/python-rs-driver

Tutte le issue di scylladb/python-rs-driver

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.