analytics

package
v0.0.0-...-5984036 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Log is the global analytics logger. Log events created via this object are
	// automatically pushed into our analytics system.
	Log = newAnalyticsLogger()
)

Functions

func NewLogHook

func NewLogHook() logrus.Hook

NewHook creates a new hook that forwards log messages to the Kelda analytics system.

func SetCustomer

func SetCustomer(c string)

SetCustomer sets the customer name that is automatically added to analytics events.

func SetKubeVersion

func SetKubeVersion(version string)

SetKubeVersion sets the Kubernetes version that is automatically added to analytics events.

func SetNamespace

func SetNamespace(ns string)

SetNamespace sets the namespace that is automatically added to analytics events.

func SetSource

func SetSource(s string)

SetSource sets the source that is automatically added to analytics events.

Types

This section is empty.

Jump to

Keyboard shortcuts

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