metrics

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package metrics handles reporting of identifable metrics about user code for personal and team consumption.

Index

Constants

This section is empty.

Variables

View Source
var WireSet = wire.NewSet(
	NewController,
)

Functions

This section is empty.

Types

type Controller

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

func NewController

func NewController(exporter *DeferredExporter, tiltBuild model.TiltBuild, gitRemote git.GitRemote) *Controller

func (*Controller) OnChange

func (c *Controller) OnChange(ctx context.Context, rStore store.RStore, _ store.ChangeSummary) error

type DeferredExporter

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

func NewDeferredExporter

func NewDeferredExporter() *DeferredExporter

func (*DeferredExporter) ExportView

func (d *DeferredExporter) ExportView(viewData *view.Data)

func (*DeferredExporter) Flush added in v0.17.5

func (d *DeferredExporter) Flush()

func (*DeferredExporter) SetRemote

func (d *DeferredExporter) SetRemote(remote RemoteExporter) error

func (*DeferredExporter) Stop added in v0.17.5

func (d *DeferredExporter) Stop() error

type MetricsState added in v0.17.5

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

func (MetricsState) Enabled added in v0.17.5

func (s MetricsState) Enabled() bool

type RemoteExporter

type RemoteExporter interface {
	view.Exporter
	Flush()
	Stop() error
}

Jump to

Keyboard shortcuts

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