From b567fcfa783291582d224e271f50a37d63377332 Mon Sep 17 00:00:00 2001 From: Paul Wells Date: Tue, 15 Sep 2026 10:22:04 -0700 Subject: [PATCH] agent endpoints: log the manifest as a structured object Router implements zapcore.ObjectMarshaler, so registration logs the table's size and the templates whose shape forces the matcher to search under one key rather than assembling fields at the call site. Which templates those are is settled when the manifest is parsed, so it is worth reporting before any request is served; what a single match cost belongs to that request instead. Co-authored-by: Claude Opus 5 (1M context) --- pkg/service/agenthandler.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/service/agenthandler.go b/pkg/service/agenthandler.go index 4a72cc472..9ab008c43 100644 --- a/pkg/service/agenthandler.go +++ b/pkg/service/agenthandler.go @@ -228,7 +228,12 @@ func (h *AgentHandler) registerEndpoints(w *agent.Worker, sess endpoint.Session) }) h.endpointRegistry.Register(reg) w.Logger().Infow("endpoints registered", - "deployment", w.Deployment, "routes", len(w.Endpoints)) + "namespace", w.Namespace, + "agentName", w.AgentName, + "deployment", w.Deployment, + "workerID", w.ID, + "manifest", manifest, + ) return reg }