Add a context manager for temporarily adding extras to StdlibLogger
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 28/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- python
调研方向
首先定位 StdlibLogger 的实现,并检查其 .info() 及相关方法如何接受 extras。将请求的行为与 structlog's .bind() 进行比较;done 应该是一个上下文管理器,临时将 extras 添加到日志调用中,并在之后恢复之前的上下文,同时编写测试覆盖进入和退出时的行为。
由索引模型根据 Issue 内容生成。
描述
Similar to how structlog provides .bind() we could provide a context manager that adds extras so you don't have to include them every time you call .info(), etc.
- 主要语言
- Python
- 星标
- 74
- 派生
- 34
- 平均合并
- 1 天 2 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
elastic/ecs-logging-python 的其他 Issue
-
agent-python community triage
难度 2/5 1-3 小时 新手友好度 64/100
elastic/ecs-logging-python#170 ·
-
Exception Group Traceback not fully visible using StdlibFormatter可能已有人在做 @Shubham-Padkonde 于 21 天前认领。 未关闭agent-python community triage
难度 4/5 3-5 天 新手友好度 35/100
elastic/ecs-logging-python#185 · 6 条评论 ·
-
StructlogProcessor fails typechecking可能已有人在做 @AWhetter 于 717 天前认领。 未关闭agent-python community triage
难度 1/5 1 小时以内 新手友好度 35/100
elastic/ecs-logging-python#146 · 2 条评论 ·
-
agent-python community enhancement
难度 4/5 3-5 天 新手友好度 35/100
elastic/ecs-logging-python#73 · 5 条评论 ·
-
agent-python community triage
难度 2/5 1-3 小时 新手友好度 50/100
elastic/ecs-logging-python#72 · 1 个 reaction ·
查看 elastic/ecs-logging-python 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
-
good first issue No-AI
难度 2/5 1-3 小时 新手友好度 69/100
-
documentation
难度 2/5 1-3 小时 新手友好度 78/100
-
🐛 Bug: Calendar work items cannot be opened on mobile可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 1/5 1 小时以内 新手友好度 75/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 2 天内回复