Documentation
¶
Overview ¶
Package telemetry hands completed CLI events to a short-lived sender process. The command process never initializes the AEM SDK or waits for a network request.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OptedOut ¶
func OptedOut() bool
OptedOut preserves the existing DO_NOT_TRACK semantics, including "0".
Types ¶
type AgentInfo ¶
type AgentInfo struct {
State runtimecontext.State `json:"state"`
ErrorCode int32 `json:"errorCode"`
ErrorCategory string `json:"errorCategory,omitempty"`
Result json.RawMessage `json:"result,omitempty"`
}
AgentInfo preserves unknown SDK fields in a complete JSON object.
func AgentInfoFromSnapshot ¶
func AgentInfoFromSnapshot(snapshot runtimecontext.AgentSnapshot) *AgentInfo
type Event ¶
type Event struct {
Protocol int `json:"protocol"`
Version string `json:"version"`
Command string `json:"command"`
Path string `json:"path"`
ExitCode int `json:"exitCode"`
DurationMillis int64 `json:"durationMillis"`
CompletedAtMillis int64 `json:"completedAtMillis"`
ErrorSummary string `json:"errorSummary,omitempty"`
Identity Identity `json:"identity"`
AgentInfo *AgentInfo `json:"agentInfo,omitempty"`
}
Event 描述原始 CLI 命令,不是发送进程自身的执行。基础事件不收集 argv、 stdout 或工作目录;AgentInfo 单独保留 SDK 返回的进程和环境元数据, 由原始 CLI 采集,发送进程不重新识别。
Click to show internal directories.
Click to hide internal directories.