pyroscope

package
v1.0.36 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module() fx.Option

Module provides fx options for Pyroscope

func RegisterHooks

func RegisterHooks(lc fx.Lifecycle, svc *Service)

RegisterHooks registers lifecycle hooks for Pyroscope

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewPyroscopeService

func NewPyroscopeService(cfg *config.Configuration, logger *logger.Logger) *Service

NewPyroscopeService creates a new Pyroscope service

func (*Service) Debugf

func (s *Service) Debugf(format string, args ...interface{})

Implement pyroscope.Logger interface for better debugging

func (*Service) Errorf

func (s *Service) Errorf(format string, args ...interface{})

func (*Service) Infof

func (s *Service) Infof(format string, args ...interface{})

func (*Service) IsEnabled

func (s *Service) IsEnabled() bool

IsEnabled returns whether Pyroscope profiling is enabled

func (*Service) TagWrapper

func (s *Service) TagWrapper(ctx context.Context, labels map[string]string, fn func(context.Context))

TagWrapper adds profiling labels to a function execution

Jump to

Keyboard shortcuts

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