telemetry

package
v0.3.21 Latest Latest
Warning

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

Go to latest
Published: Apr 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(), error)

func InitPyroscope

func InitPyroscope(pyroscopeServerURL string) (func(), 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