Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrExitCode ¶ added in v0.5.0
func IsEnvelopePrintedError ¶ added in v0.3.0
func IsExitCodeError ¶ added in v0.5.0
IsExitCodeError checks if an error is an exit code error.
func NewRootCommand ¶
Types ¶
type CLITelemetry ¶
type CLITelemetry struct {
// contains filtered or unexported fields
}
CLITelemetry records access events directly to daemon.db when the daemon is not running. All operations are best-effort: failures are logged to stderr in verbose mode but never propagate.
func NewCLITelemetry ¶
func NewCLITelemetry(clientName, sessionID string, verbose bool) *CLITelemetry
func (*CLITelemetry) ApplyRetention ¶
func (t *CLITelemetry) ApplyRetention(maxAgeDays int) (int64, error)
func (*CLITelemetry) Close ¶
func (t *CLITelemetry) Close() error
func (*CLITelemetry) RecordOperation ¶
func (t *CLITelemetry) RecordOperation(request model.CommandRequest, envelope model.Envelope, opErr error, latency time.Duration, route string)
Click to show internal directories.
Click to hide internal directories.