Skip to content

feat(otel): onboard atecontroller to the OTLP path - #754

Merged
Eitan Yarmush (EItanya) merged 2 commits into
agent-substrate:mainfrom
krisztianfekete:chore/onboard-atecontroller-to-otel
Aug 6, 2026
Merged

feat(otel): onboard atecontroller to the OTLP path#754
Eitan Yarmush (EItanya) merged 2 commits into
agent-substrate:mainfrom
krisztianfekete:chore/onboard-atecontroller-to-otel

Conversation

@krisztianfekete

@krisztianfekete Krisztian F (krisztianfekete) commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

atecontroller had no OTel at all. Dev-mode zap logger, and its controller-runtime metrics were only available on a :8080 that we don't scrape.

After this PR, logs go through the shared slog handler (plus a --log-level flag to match the other binaries), and controller-runtime's Prometheus registry is bridged onto the OTLP reader so the reconcile/workqueue metrics actually reach the collector. Filtering these out is a pipeline responsibility. Also added otelgrpc to the ateapi client, which was untraced.

This unblocks #564 the workperpool metrics, cc Angela (@Angelawork), Jeff Luo (@JeffLuoo): there's a working MeterProvider to use for ate.workerpool.desired_workers/ready_workers.

Couple of things to mention for review:

-InitMetricsPushOnly, not InitMetrics, even though we do serve :8080. That port is controller-runtime's own private registry, not the global one serverboot.metricsMux serves, so a pull reader there would collect into something we never expose.

  • Bridge is pinned to v0.68.0 to match otelgrpc. Wanted to go to v0.70.0, but that requires otel/sdk/metric 1.45.0 and pulls the whole SDK up with it (406 vendor files instead of 81). Happy to do that bump separately.

  • zap/zapr fall out of go.mod since atecontroller was the last importer.

  • I included an OTel collector image bump from the early 2024 (!) one to latest, which was breaking exposing native histograms

  • Tests pass

  • Appropriate changes to documentation are included in the PR

Comment thread docs/observability.md
@JeffLuoo

Copy link
Copy Markdown
Collaborator

Please rebase

@EItanya
Eitan Yarmush (EItanya) merged commit c155efd into agent-substrate:main Aug 6, 2026
11 checks passed
@krisztianfekete
Krisztian F (krisztianfekete) deleted the chore/onboard-atecontroller-to-otel branch August 6, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants