telemetry

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: LGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PostInstallationEvent = "World CLI Installation"
	RunningEvent          = "World CLI Running"
)

Variables

This section is empty.

Functions

func PosthogCaptureEvent

func PosthogCaptureEvent(context, event string)

func PosthogClose

func PosthogClose()

func PosthogInit

func PosthogInit(posthogAPIKey string)

Init Posthog initialization

func SentryFlush

func SentryFlush()

func SentryInit

func SentryInit(sentryDsn string)

SentryInit initialize sentry

Types

type SentryHook

type SentryHook struct{}

SentryHook is a custom hook that implements zerolog.Hook interface

func (SentryHook) Levels

func (h SentryHook) Levels() []zerolog.Level

Levels returns the log levels that this hook should be triggered for

func (SentryHook) Run

func (h SentryHook) Run(_ *zerolog.Event, level zerolog.Level, msg string)

Run is called for every log event and implements the zerolog.Hook interface

Jump to

Keyboard shortcuts

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