trace

package
v0.0.0-...-c4caace Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Load

type Load interface {
	Load() (*config.AgentConfig, error)
}

Load abstracts the file configuration loading

type LoadConfig

type LoadConfig struct {
	Path string
}

LoadConfig is implementing Load to retrieve the config

func (*LoadConfig) Load

func (l *LoadConfig) Load() (*config.AgentConfig, error)

Load loads the config from a file path

type ServerlessTraceAgent

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

ServerlessTraceAgent represents a trace agent in a serverless context

func (*ServerlessTraceAgent) Get

func (s *ServerlessTraceAgent) Get() *agent.Agent

Get returns the trace agent instance

func (*ServerlessTraceAgent) Start

func (s *ServerlessTraceAgent) Start(enabled bool, loadConfig Load)

Start starts the agent

func (*ServerlessTraceAgent) Stop

func (s *ServerlessTraceAgent) Stop()

Stop stops the trace agent

Jump to

Keyboard shortcuts

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