profilerservice

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostOptions

type HostOptions struct {
	// Config is the bootstrap profiler configuration loaded from config file.
	Config *provider.ProfilerProviderOptions
}

func NewHostOptionsFromEnvironment

func NewHostOptionsFromEnvironment(options hostoptions.ProviderConfig) HostOptions

NewHostOptionsFromEnvironment of profiler/hostoptions package returns the HostOptions for profiler service.

type Service

type Service struct {
	Options HostOptions
}

func NewService

func NewService(options HostOptions) *Service

NewService of profiler package returns a new Service with the configs needed

func (*Service) Name

func (s *Service) Name() string

Name returns the name of the profiler service.

func (*Service) Run

func (s *Service) Run(ctx context.Context) error

Run starts the profiler server that exposes an endpoint to collect profiler from. It handles shutdown based on the context, and returns an error if the server fails to start.

Jump to

Keyboard shortcuts

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