Injecting the metrics and log adapter into the Worker object
还没有人认领这个 Issue。
评估
调研方向
从所引用行中的 lib/temporal/activity/task_processor.rb 开始,然后追踪 Temporal.log 和 Temporal.metrics 的其他使用位置,以及 adapter 如何进入 Worker 构造函数。完成的标准是 Worker 配置可以覆盖两个 adapter,并且相关使用位置一致地遵循这些注入的值。
由索引模型根据 Issue 内容生成。
描述
Hi there,
At the moment, some of the usages of the log and metrics adapters reference the global variables Temporal.log and Temporal.metrics respectively. This means that the configuration can't be overridden by passing different adapters in the configuration into the Worker constructor.
I've noticed that there are more and more things are starting to be injected via the Worker. Is doing the same thing with these adapters possible? Would you accept a change which added that?
Thanks!
- 主要语言
- Ruby
- 星标
- 288
- 派生
- 113
- 平均合并
- 10 天 15 小时
- 30 天内合并 PR
- 2
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
coinbase/temporal-ruby 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
coinbase/temporal-ruby#361 ·
-
难度 3/5 1-2 天 新手友好度 35/100
coinbase/temporal-ruby#341 ·
-
难度 5/5 一周以上 新手友好度 25/100
coinbase/temporal-ruby#328 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 45/100
coinbase/temporal-ruby#326 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
coinbase/temporal-ruby#324 · 3 条评论 · 2 个 reaction ·
查看 coinbase/temporal-ruby 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
-
bug
难度 1/5 1 小时以内 新手友好度 90/100
riscv/riscv-unified-db#2626 ·
-
Component: GLib
难度 2/5 1-3 小时 新手友好度 70/100
-
ds-drift
难度 2/5 1-3 小时 新手友好度 70/100
we-promise/sure#3693 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
simp/pupmod-simp-simp#395 ·