Skip to content

(chore): consolidate logging to ateattr - #1035

Merged
Eitan Yarmush (EItanya) merged 2 commits into
agent-substrate:mainfrom
krisztianfekete:chore/consolidate-logging
Aug 19, 2026
Merged

Eitan Yarmush (EItanya) merged 2 commits into
agent-substrate:mainfrom
krisztianfekete:chore/consolidate-logging

Conversation

@krisztianfekete

Copy link
Copy Markdown
Collaborator

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 [Design] Actor Otel Telemetry Relay #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, fix(actorlogger): add actor UID to JSON logs and handle null input #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

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

@krisztianfekete

Copy link
Copy Markdown
Collaborator Author

Comment thread internal/actorlog/logger.go Resolved
@EItanya
Eitan Yarmush (EItanya) merged commit c3c6876 into agent-substrate:main Aug 19, 2026
9 checks passed
@krisztianfekete
Krisztian F (krisztianfekete) deleted the chore/consolidate-logging branch August 19, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consolidate actor log labels onto the ate.* attribute registry

3 participants