Skip to content

ateinterceptors: elide List responses from the RPC log - #2494

Merged
Haven Xia (HavenXia) merged 2 commits into
agent-substrate:mainfrom
dims:ateapi-list-log
Oct 19, 2026
Merged

Haven Xia (HavenXia) merged 2 commits into
agent-substrate:mainfrom
dims:ateapi-list-log

Conversation

@dims

@dims Davanum Srinivas (dims) commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

The RPC log line carries the whole response; a List page of a thousand actors is tens of kilobytes and rotates the lifecycle lines out of the container log.

  • List* responses are logged as <ListActors response elided, N bytes>; the response to the client is untouched.
  • A failed List call logs the handler's null, not an elided placeholder.
  • Tests cover both.

go test -race ./internal/ateinterceptors/, lint clean.

@dims
Davanum Srinivas (dims) marked this pull request as ready for review October 12, 2026 13:52
@dims
Davanum Srinivas (dims) force-pushed the ateapi-list-log branch 2 times, most recently from a28dc7c to 19ac900 Compare October 14, 2026 00:48

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generally LGTM, one agent catch

@dims
Davanum Srinivas (dims) force-pushed the ateapi-list-log branch 3 times, most recently from 795d272 to de5bc57 Compare October 17, 2026 01:39
@BenTheElder

Copy link
Copy Markdown
Collaborator

cc Haven Xia (@HavenXia)

A page of a thousand actors is tens of kilobytes per call. At scale those
pages rotated the lifecycle lines out of the container log in minutes.
Log the response size instead.
The generated handlers return a typed nil on error, which the elision
turned into "<ListActors response elided, 0 bytes>" instead of null.
@HavenXia
Haven Xia (HavenXia) added this pull request to the merge queue Oct 19, 2026
Merged via the queue into agent-substrate:main with commit ed082b8 Oct 19, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants