Documentation
¶
Overview ¶
Package telemetry provides opt-in analytics and telemetry collection. Currently this is a stub implementation that does nothing (no-op). Future versions may implement opt-in telemetry to improve the CLI experience.
Index ¶
- func Track(ctx context.Context, event Event) error
- func TrackCommand(ctx context.Context, command string, duration int64, success bool) error
- func TrackError(ctx context.Context, command string, errType string) error
- type Client
- func (c *Client) Close() error
- func (c *Client) Disable()
- func (c *Client) Enable()
- func (c *Client) Flush(ctx context.Context) error
- func (c *Client) IsEnabled() bool
- func (c *Client) Track(ctx context.Context, event Event) error
- func (c *Client) TrackCommand(ctx context.Context, command string, duration int64, success bool) error
- func (c *Client) TrackError(ctx context.Context, command string, errType string) error
- type Event
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TrackCommand ¶
TrackCommand records a command execution using the default client
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a telemetry client
func NewClient ¶
func NewClient() *Client
NewClient creates a new telemetry client Currently returns a no-op client
Click to show internal directories.
Click to hide internal directories.