analytics

package
v0.6.26 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectAnalytics

func CollectAnalytics(ctx context.Context, cloudClient cloud.Client, displayErrors bool, meta Meta)

CollectAnalytics sends analytics to api.earthly.dev

func Count added in v0.6.15

func Count(subsystem, key string)

Count increases the global count of (subsystem, key) which then gets reported when CollectAnalytics is called.

func RepoHashFromCloneURL added in v0.6.15

func RepoHashFromCloneURL(repo string) string

RepoHashFromCloneURL returns the repoHash of a ref

Types

type Counters added in v0.6.15

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

Counters is a threadsafe collection of counters

func (*Counters) Count added in v0.6.15

func (c *Counters) Count(subsystem, key string)

Count increases the global count of (subsystem, key) which then gets reported when CollectAnalytics is called.

type Meta added in v0.6.20

type Meta struct {
	Version          string
	Platform         string
	BuildkitPlatform string
	UserPlatform     string
	GitSHA           string
	CommandName      string
	ExitCode         int
	IsSatellite      bool
	SatelliteVersion string
	IsRemoteBuildkit bool
	Realtime         time.Duration
}

Meta holds metadata about the current run of the program.

Jump to

Keyboard shortcuts

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