getappmap / getappmap/appmap-python
uninstrumented functions may be called
未关闭
还没有人认领这个 Issue。
navie-plan
- 主要语言
- Python
- 星标
- 104
- 派生
- 17
- PR 合并指标
- 30 天内没有已合并 PR
描述
If application code saves a reference to function when the code is imported, a call to that function won't generate any events in the recording.
For example, with this definition
def free_method():
return "free method"
def Example:
static_method = staticmethod(partial(free_method))
Example.static_method()
no events for the call to free_method will be recorded. This is because instrumentation of free_method happens after the module is loaded, and so after the call to partial(free_method)) has saved the reference to free_method.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
以 issue 中的 Python 复现程序为起点,然后跟踪相对于由 partial 和 staticmethod 保存的引用,instrumentation 何时被应用。完成的标准是:通过这些已保存引用进行的调用会在记录中生成事件,并且该复现程序由 regression test 覆盖。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- devtools
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100