telemetry

package
v0.6.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MPL-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UIEnvVar = "DEVPOD_UI"
)

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()

	UIEventsExceptions []string = []string{"devpod list", "devpod provider list", "devpod status"}
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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