agent-substrate / agent-substrate/substrate

Add time metadata to actors

未關閉
#277 3 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
area/api area/api-machinery kind/feature
主要語言
Go
星號
1.8k
分支
316
平均合併
2 天 43 分鐘
30 天內合併 PR
287

描述

In many cases it's useful to have some time metadata for actors (e.g. created / updated time). Today there are no fields to track this.

- `create_time`: Timestamp when actor is created. Immutable.
- `update_time`: Last time the actor was modified in any way (suspended, resumed, updated, etcCanc).
- `last_resume_time`: Timestamp of the most recent transition into RUNNING.
- `total_running_duration`: Cumulative time the actor spent running, since creation. Never resets. (this could be tricky to get right with high resolution if ate-apiservers have some clock skew)

The https://google.aip.dev/142 has some guidelines on how to deal with times in gRPC APIs. We should probably use the `google.protobuf.Timestamp` and `google.protobuf.Duration` well-known protos.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。