Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Add query tracing to LegacySession

Abierto
#243 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
python, rust

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Rust
Estrellas
6
Forks
8
Merge medio
3 d 21 h
PR fusionados (30 d)
16

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de scylladb/python-rs-driver

Todos los issues de scylladb/python-rs-driver

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.