Add query tracing to LegacySession
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
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
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.
- 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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de scylladb/python-rs-driver
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 60/100
scylladb/python-rs-driver#224 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
scylladb/python-rs-driver#193 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 18/100
scylladb/python-rs-driver#242 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Migrate to pyo3 0.30Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 22/100
scylladb/python-rs-driver#241 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
scylladb/python-rs-driver#238 ·
Los mantenedores suelen responder en 1 día
Todos los issues de scylladb/python-rs-driver
Issues similares
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
charles-hood/DiagramCraft#73 ·
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 78/100
ontologyportal/sigma-rs#200 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
chipsalliance/caliptra-sw#4311 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
`image_generation`: `max_retries` is ignored for OpenAI-compatible providers (always 2 retries)Posiblemente ocupada @ericz7900 la tomó hoy. Abiertollm translation
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día