ateapi: set actor template and sandbox class on the step.AssignWorker span

未关闭 适合新手
#4,275 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
go

调研方向

从cmd/ateapi/internal/controlapi/workflow_resume.go中引用片段的起始位置以及模板和沙箱类引用处开始,然后阅读workflow.go:59-60和docs/guides/observability.md的“No keys”部分,了解拒绝行为。在step.AssignWorker开始时添加要求的三个属性,包括被拒绝的分配;确认 span 暴露ate.template.atespace、ate.template.name和ate.sandbox.class。

由索引模型根据 Issue 内容生成。

描述

area/observability kind/feature

When no worker has room, step.AssignWorker records an error (cmd/ateapi/internal/controlapi/workflow_resume.go:241, workflow.go:59-60), but stepSpan sets no attributes on it. The actor template (workflow_resume.go:238) and the sandbox class (workflow_resume.go:428) are available when the span starts.

A refused placement has no pool, because no worker was picked (docs/guides/observability.md, "No keys"). The template and the class are known, so the span could carry them.

Why it matters: the error span is the only signal I found that shows every refusal. In a 2 hour test on one cluster it showed 14 refusals, and ate.scheduler.assignment.duration{ate.scheduler.outcome=no_capacity} showed 3 samples. With the template on the span, an operator can alert on refusals per template. Today the alert can only be per cluster.

Request: set ate.template.atespace, ate.template.name and ate.sandbox.class on the step.AssignWorker span when it starts.

I used an AI assistant to draft this issue and checked the code references myself.

主要语言
Go
星标
8.7k
派生
969
平均合并
5 天 1 小时
30 天内合并 PR
128

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

agent-substrate/substrate 的其他 Issue

查看 agent-substrate/substrate 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。