Documentation
¶
Overview ¶
Package telemetry hands completed CLI events to a short-lived sender process. The command process never initializes the 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 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"`
}
Event is a completed command, not the sender's own execution. No arguments, stdout, working directory, attribution, credentials, or arbitrary fields cross the process boundary.
Click to show internal directories.
Click to hide internal directories.