telemetry

package
v0.42.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrUserIDNotSpecified         = "telemetry.user_id_not_specified"
	ErrSentryFlushTimeoutExceeded = "telemetry.sentry_flush_timeout_exceeded"
)

Variables

This section is empty.

Functions

func Close added in v0.12.0

func Close()

func Error added in v0.12.0

func Error(err error, tags ...map[string]string)

func ErrorSentryFlushTimeoutExceeded added in v0.15.0

func ErrorSentryFlushTimeoutExceeded() error

func ErrorUserIDNotSpecified added in v0.15.0

func ErrorUserIDNotSpecified() error

func Event added in v0.12.0

func Event(name string, properties ...map[string]interface{})

func EventFromException added in v0.15.0

func EventFromException(exception error) *sentry.Event

func EventNotify added in v0.12.0

func EventNotify(name string, properties ...map[string]interface{})

func Init added in v0.12.0

func Init(telemetryConfig Config) error

func RecordOperatorID added in v0.12.0

func RecordOperatorID(clientID string, operatorID string)

Types

type BackoffMode added in v0.13.0

type BackoffMode int
const (
	NoBackoff BackoffMode = iota
	BackoffDuplicateMessages
	BackoffAnyMessages
)

type Config added in v0.12.0

type Config struct {
	Enabled     bool
	UserID      string
	Properties  map[string]string
	Environment string
	LogErrors   bool
	BackoffMode BackoffMode
}

Jump to

Keyboard shortcuts

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