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

オープン 初心者向け
#4,275 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
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の開始時に、拒否された配置も含めて、要求された3つの属性を追加してください。スパンに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時間
マージ済み PR(30日)
128

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

agent-substrate/substrate のほかの issue

agent-substrate/substrate の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。