Documentation
¶
Overview ¶
Package trace provides trace collection and processing for serverless environments.
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 ¶
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 interface {
Stop()
Flush()
Process(p *api.Payload)
SetTags(map[string]string)
SetTargetTPS(float64)
SetSpanModifier(agent.SpanModifier)
GetSpanModifier() agent.SpanModifier
}
ServerlessTraceAgent represents a trace agent in a serverless context
func StartServerlessTraceAgent ¶
func StartServerlessTraceAgent(args StartServerlessTraceAgentArgs) ServerlessTraceAgent
Start starts the agent
type StartServerlessTraceAgentArgs ¶
type StartServerlessTraceAgentArgs struct {
Enabled bool
LoadConfig Load
AdditionalProfileTags map[string]string
FunctionTags string
RCService *remoteconfig.CoreAgentService
}
StartServerlessTraceAgentArgs are the arguments for the StartServerlessTraceAgent method
Click to show internal directories.
Click to hide internal directories.