Help us shape the future of Go! Take the 2026 Go Developer Survey

telemetry

package
v0.9.16 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitOtelSDK

func InitOtelSDK(
	ctx context.Context, otelCollectorUrl string, pushInterval time.Duration,
) (func(context.Context) error, error)

func InitPyroscope added in v0.8.8

func InitPyroscope(pyroscopeServerURL string) (func() error, error)

InitPyroscope initializes the Pyroscope profiler for continuous profiling. It returns a shutdown function that should be called on application exit. If pyroscopeServerURL is empty, this function does nothing and returns a no-op shutdown function.

Types

type OTelHook

type OTelHook struct {
}

func NewOTelHook

func NewOTelHook() *OTelHook

func (*OTelHook) Fire

func (h *OTelHook) Fire(e *logrus.Entry) error

func (*OTelHook) Levels

func (h *OTelHook) Levels() []logrus.Level

Jump to

Keyboard shortcuts

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