Skip to content

fix(actorlogger): add actor UID to JSON logs and handle null input - #841

Merged
Da Huang (git286) merged 1 commit into
agent-substrate:mainfrom
yelshall:fix/actorlog-structured-input
Aug 11, 2026
Merged

Da Huang (git286) merged 1 commit into
agent-substrate:mainfrom
yelshall:fix/actorlog-structured-input

Conversation

@yelshall

Copy link
Copy Markdown
Contributor

Fixes #838

Noticed that WrapContainerLogs doesn't add UID to the logs, and then also fixed handling null messages.

  • Tests pass
  • Appropriate changes to documentation are included in the PR

@maxsmythe

Copy link
Copy Markdown
Collaborator

Da Huang (@git286) For triage/review

@git286
Da Huang (git286) merged commit d6b01f5 into agent-substrate:main Aug 11, 2026
11 checks passed
Eitan Yarmush (EItanya) pushed a commit that referenced this pull request Aug 19, 2026
Actor logs used `ate.dev/actor_*` while spans and metrics use `ate.*`
registry in internal/ateattr. This PR makes ateattr the single source of
truth for everything telemetry-related.

- Renamed the six actor log labels onto the registry: 
- `ate.atespace`, `ate.actor.name`, `ate.actor.uid`,
`ate.template.namespace`, `ate.template.name`,
`ate.actor.container.name`
- Logs join traces now. Records set `trace_id`, `span_id` and
`trace_flags`, so you can go from Actor restored to the resume that
caused it. Our own lines only, not an actor's stdout: one goroutine
forwards a whole container stream and can't know which request produced
a given line. Per line correlation comes with #853.
- Actors can't fake platform labels. They already couldn't overwrite
ours, but they could invent new ones like `ate.tenant` that look
platform issued downstream. Anything under `ate.` from an actor is now
dropped.
- Fixed the asymmetry that was actually left: actor supplied label
values weren't stringified, and one non string value makes Cloud Logging
discard the labels for that whole entry.
- Note: the actor_uid bullet in the issue is stale, #841 fixed it
earlier. Lifecycle records still set five labels rather than six, on
purpose as they're about the actor, so no container produced them.

Fixes #886

- [x] Tests pass
- [x] Appropriate changes to documentation are included in the PR

---------

Signed-off-by: krisztianfekete <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

actorlog: safely and consistently enrich structured container logs

3 participants