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

Đang mở Phù hợp với người mới
#4,275 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
backend, observability

Hướng nghiên cứu

Bắt đầu với cmd/ateapi/internal/controlapi/workflow_resume.go tại đầu đoạn được trích dẫn và các tham chiếu đến template và lớp sandbox, sau đó đọc workflow.go:59-60 và phần “No keys” trong docs/guides/observability.md để hiểu hành vi từ chối. Thêm ba thuộc tính được yêu cầu khi step.AssignWorker bắt đầu, kể cả với các trường hợp phân bổ bị từ chối; xác nhận span hiển thị ate.template.atespace, ate.template.name và ate.sandbox.class.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Go
Star
8.7k
Fork
969
Merge trung bình
5 ngày 1 giờ
Pull request đã merge (30 ngày)
128

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của agent-substrate/substrate

Tất cả issue của agent-substrate/substrate

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.