telemetry

package
v1.2.121 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TracesURL = "http://localhost:4318/v1/traces"
)

Variables

This section is empty.

Functions

func Init

func Init(ctx context.Context, opts TelemetryOptions) error

func IsEnabled

func IsEnabled() bool

func NewTraceExporter added in v1.2.119

func NewTraceExporter(url string) (*otlptrace.Exporter, error)

func Shutdown

func Shutdown(ctx context.Context) error

Types

type NoTelemetryWerfIO added in v1.2.120

type NoTelemetryWerfIO struct{}

func (*NoTelemetryWerfIO) CommandStarted added in v1.2.120

func (t *NoTelemetryWerfIO) CommandStarted(context.Context)

func (*NoTelemetryWerfIO) SetCommand added in v1.2.120

func (t *NoTelemetryWerfIO) SetCommand(string)

func (*NoTelemetryWerfIO) SetProjectID added in v1.2.120

func (t *NoTelemetryWerfIO) SetProjectID(string)

type TelemetryOptions added in v1.2.121

type TelemetryOptions struct {
	ErrorHandlerFunc func(err error)
}

type TelemetryWerfIO added in v1.2.120

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

func NewTelemetryWerfIO added in v1.2.120

func NewTelemetryWerfIO(url string) (*TelemetryWerfIO, error)

func (*TelemetryWerfIO) CommandStarted added in v1.2.120

func (t *TelemetryWerfIO) CommandStarted(ctx context.Context)

func (*TelemetryWerfIO) SetCommand added in v1.2.120

func (t *TelemetryWerfIO) SetCommand(command string)

func (*TelemetryWerfIO) SetProjectID added in v1.2.120

func (t *TelemetryWerfIO) SetProjectID(projectID string)

func (*TelemetryWerfIO) Shutdown added in v1.2.120

func (t *TelemetryWerfIO) Shutdown(ctx context.Context) error

func (*TelemetryWerfIO) Start added in v1.2.120

func (t *TelemetryWerfIO) Start(ctx context.Context) error

TODO: start background procedure

type TelemetryWerfIOInterface added in v1.2.120

type TelemetryWerfIOInterface interface {
	SetProjectID(projectID string)
	SetCommand(command string)
	CommandStarted(ctx context.Context)
}

func GetTelemetryWerfIO added in v1.2.120

func GetTelemetryWerfIO() TelemetryWerfIOInterface

Jump to

Keyboard shortcuts

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