getappmap / getappmap/appmap-python
Arguments could be captured even when signature is unknown
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 104
- 派生
- 17
- PR 合并指标
- 30 天内没有已合并 PR
描述
Consider functools.lru_cache; this is a built-in, so signature is not available. However, we still get args and kwargs if we trace the call (as happens often when the decorator is used on a traced class). Currently in the absence of a signature parameters end up being []. I think it's worthwhile to record arguments anyway.
Requires applandinc/appmap#22
For all intents and purposes blocked by #126 -- in CPython native functions are, to my knowledge, the only case where a function signature cannot be obtained. While it might be possible to implement and even test this without that, but it would be pretty useless.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先检查涉及 functools.lru_cache 的跟踪调用的参数捕获路径,然后检查 applandinc/appmap#22 中的依赖关系以及阻塞问题 #126。完成的标准是:即使没有可用的函数签名,也会记录 args 和 kwargs,而不是让 parameters 为空。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- devtools
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100