Add query timing and debug logging to index execution paths
维护者通常 4 天内回复
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- python, redis
调研方向
从 redisvl/index/index.py 开始,跟踪同步和异步查询执行路径,记录可以在哪里观察查询类型、耗时和结果数量。完成标准是:两条路径都输出所请求的调试计时数据,慢查询可以触发可选警告,结果保持不变,并且禁用调试日志时只产生可忽略的开销。
由索引模型根据 Issue 内容生成。
描述
Summary
Add query timing and debug logging around index execution paths for better observability.
Level: Intermediate
Current State
- Logging exists in some RedisVL components, but query execution paths are lightly instrumented.
- Performance triage often requires ad hoc local instrumentation.
Proposed Change
- Add debug logs for sync/async query execution in
redisvl/index/index.py:- query category/type
- elapsed time (ms)
- result count
- Add optional slow-query warning threshold.
Definition of Done
- Query timing appears in debug logs for sync and async paths.
- No functional behavior changes to query results.
- Overhead is negligible when debug logging is disabled.
Out of Scope
- Full tracing backend integration (OpenTelemetry, etc.).
- 主要语言
- Python
- 星标
- 432
- 派生
- 116
- 平均合并
- 5 天 22 小时
- 30 天内合并 PR
- 13
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
redis/redis-vl-python 的其他 Issue
-
from_existing fails on SVS-VAMANA indexes created without compression可能已有人在做 @itsrayeedscodespace 于 2 天前认领。 未关闭bug index
难度 2/5 1-3 小时 新手友好度 84/100
redis/redis-vl-python#787 ·
维护者通常 4 天内回复
-
RedisVL warnings are never shown when the application has not configured logging可能已有人在做 @hippi345 于 2 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 77/100
redis/redis-vl-python#786 ·
维护者通常 4 天内回复
-
exists() depends on exact FT.INFO error wording; an unrecognised "missing index" message makes create() never create the index (regression from #672)可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
redis/redis-vl-python#773 · 1 条评论 ·
维护者通常 4 天内回复
-
Vector field with index_missing=True cannot be created可能已有人在做 @RaphaelFakhri 于 12 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
redis/redis-vl-python#770 ·
维护者通常 4 天内回复
-
Add Python 3.15 support可能已有人在做 @vishal-bala 于 13 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 65/100
redis/redis-vl-python#757 · 1 条评论 · 1 个 reaction ·
维护者通常 4 天内回复
查看 redis/redis-vl-python 的全部 Issue
相似的 Issue
-
enhancement help wanted
难度 2/5 1-3 小时 新手友好度 76/100
Git-Hospital/githealthcheck#61 ·
维护者通常 1 天内回复
-
changelog investigate
难度 2/5 1-3 小时 新手友好度 67/100
ramnes/notion-sdk-py#433 ·
-
Partial method descriptors raise on class access可能已有人在做 @Gambit-Checkmate 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 19 天内回复
-
docs pkg:core
难度 1/5 1 小时以内 新手友好度 84/100
pydantic/pydantic-ai#11929 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
intake/intake-esm#789 ·