Files
substrate/cmd/ateapi/internal/scheduling
Jeff Luo 9ad967a1f3 metrics: bound ate.sandbox.class with one rule for every emitter (#1484)
Fixes #1475

`Control.CreateWorker` does not validate `Worker.sandbox_class`, so a
client can register a worker with an empty one (and any record written
before this keeps it). `RegisterWorkerCount` tallied that raw value, so
`ate.workerpool.workers` emitted `ate_sandbox_class=""` — not a member
of the `ate.sandbox.class` registry vocabulary — alongside the pool's
seeded series at 0.

This change normalizes the worker's class with the existing
`ateattr.NormalizeSandboxClass`, so an empty class reports as `unknown`.

New `ateattr.SandboxClassAttribute`, used by every emitter. This closes
the same gap on `ate.actor.crashes` and the `ate.actor.lifecycle.*`.

- [x] Tests pass
- [x] Appropriate changes to documentation are included in the PR
2026-09-09 18:53:42 +02:00
..