telemetry

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2023 License: MPL-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultCollector

type DefaultCollector struct {
	// contains filtered or unexported fields
}

func NewDefaultCollector

func NewDefaultCollector() *DefaultCollector

func (*DefaultCollector) RecordEndEvent

func (d *DefaultCollector) RecordEndEvent(err error)

func (*DefaultCollector) RecordStartEvent

func (d *DefaultCollector) RecordStartEvent(provider string)

func (*DefaultCollector) SetCLIData

func (d *DefaultCollector) SetCLIData(command *cobra.Command, globalFlags *flags.GlobalFlags)

type EventCollector

type EventCollector interface {
	// RecordStartEvent populates TelemetryRequest with the data about Command start and uploads the request to the telemetry backend
	RecordStartEvent(provider string)
	RecordEndEvent(err error)
	SetCLIData(*cobra.Command, *flags.GlobalFlags)
}
var (
	Collector EventCollector = NewDefaultCollector()
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL