Documentation
¶
Index ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) IsEnabled() bool
- func (c *Client) SetEnabled(enabled bool)
- func (c *Client) Track(name string, properties map[string]interface{}) error
- func (c *Client) TrackCommand(command string, duration time.Duration, success bool)
- func (c *Client) TrackError(command string, err error)
- type Collector
- type Context
- type Event
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client handles telemetry data collection and submission
func (*Client) SetEnabled ¶
SetEnabled enables or disables telemetry collection
func (*Client) TrackCommand ¶
TrackCommand tracks a command execution
func (*Client) TrackError ¶
TrackError tracks an error event with sanitized information
type Collector ¶
type Collector interface {
Track(event string, properties map[string]interface{}) error
SetEnabled(enabled bool)
IsEnabled() bool
}
Collector handles telemetry data collection
Click to show internal directories.
Click to hide internal directories.