mirror of
https://github.com/livekit/livekit.git
synced 2026-10-24 02:02:55 +00:00
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) <noreply@anthropic.com>
This commit is contained in:
1 parent
e53cec5a88
commit
b567fcfa78
1 file changed
+6
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user