telemetry

package
v0.37.3 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRillIntake = errors.New("failed to fire telemetry")

Functions

This section is empty.

Types

type Action

type Action string

Action represents a type of telemetry event. Error actions are not needed. Will be inferred from missing events.

const (
	ActionInstallSuccess         Action = "install-success"
	ActionDeployStart            Action = "deploy-start"
	ActionDeploySuccess          Action = "deploy-success"
	ActionGithubConnectedStart   Action = "ghconnected-start"
	ActionGithubConnectedSuccess Action = "ghconnected-success"
	ActionDataAccessStart        Action = "dataaccess-start"
	ActionDataAccessSuccess      Action = "dataaccess-success"
	ActionLoginStart             Action = "login-start"
	ActionLoginSuccess           Action = "login-success"
)

type Telemetry

type Telemetry struct {
	Enabled   bool
	InstallID string
	Version   config.Version
	UserID    string
	// contains filtered or unexported fields
}

func New

func New(ver config.Version) *Telemetry

func (*Telemetry) Emit

func (t *Telemetry) Emit(action Action)

func (*Telemetry) Flush

func (t *Telemetry) Flush(ctx context.Context) error

func (*Telemetry) WithUserID added in v0.25.0

func (t *Telemetry) WithUserID(userID string)

Jump to

Keyboard shortcuts

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