]> git.giacomolli.uk - onechat/commit
Record the node, reply size, and time of each call
authorAnderson A. Giacomolli <agiacomolli@gmail.com>
Fri, 6 Nov 2026 18:43:32 +0000 (15:43 -0300)
committerAnderson A. Giacomolli <agiacomolli@gmail.com>
Fri, 6 Nov 2026 18:43:32 +0000 (15:43 -0300)
commitd647f33b3e70f9419f6c0740e1d01b210439a519
treeddc2afc10f9cc63c2957524127cd9cddb00a079b
parentba9faee0cd6c35020997794ef7bf134e8db12e96
Record the node, reply size, and time of each call

Each line of usage.jsonl also gives the length of the call in seconds,
the size of the text of the reply in bytes, and, for a compaction, the
node [l, i] that it builds. With these fields the records show the size
of each try of a node, the time per call, and how many calls ran at
once, also when eight builds run in parallel and the order of the calls
no longer tells which node a call belongs to.

The compactor names the node on its requests. The node goes only to the
usage file and never to the endpoint.

Issue: b14d537
compactor.go
compactor_test.go
responses.go
responses_test.go