Documentation ¶
Index ¶
- type ColdStartSpanCreator
- type Load
- type LoadConfig
- type ServerlessTraceAgent
- func (s *ServerlessTraceAgent) Flush()
- func (s *ServerlessTraceAgent) Get() *agent.Agent
- func (s *ServerlessTraceAgent) SetSpanModifier(fn func(*pb.TraceChunk, *pb.Span))
- func (s *ServerlessTraceAgent) SetTags(tagMap map[string]string)
- func (s *ServerlessTraceAgent) Start(enabled bool, loadConfig Load, lambdaSpanChan chan<- *pb.Span, ...)
- func (s *ServerlessTraceAgent) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColdStartSpanCreator ¶
type ColdStartSpanCreator struct { TraceAgent *ServerlessTraceAgent LambdaSpanChan <-chan *pb.Span LambdaInitMetricChan <-chan *serverlessLog.LambdaInitMetric ColdStartSpanId uint64 StopChan chan struct{} ColdStartRequestID string // contains filtered or unexported fields }
func (*ColdStartSpanCreator) Run ¶
func (c *ColdStartSpanCreator) Run()
func (*ColdStartSpanCreator) Stop ¶
func (c *ColdStartSpanCreator) Stop()
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) Flush ¶
func (s *ServerlessTraceAgent) Flush()
Flush performs a synchronous flushing in the trace agent
func (*ServerlessTraceAgent) Get ¶
func (s *ServerlessTraceAgent) Get() *agent.Agent
Get returns the trace agent instance
func (*ServerlessTraceAgent) SetSpanModifier ¶
func (s *ServerlessTraceAgent) SetSpanModifier(fn func(*pb.TraceChunk, *pb.Span))
func (*ServerlessTraceAgent) SetTags ¶
func (s *ServerlessTraceAgent) SetTags(tagMap map[string]string)
SetTags sets the tags to the trace agent config and span processor
func (*ServerlessTraceAgent) Start ¶
func (s *ServerlessTraceAgent) Start(enabled bool, loadConfig Load, lambdaSpanChan chan<- *pb.Span, coldStartSpanId uint64)
Start starts the agent
func (*ServerlessTraceAgent) Stop ¶
func (s *ServerlessTraceAgent) Stop()
Stop stops the trace agent
Directories ¶
Path | Synopsis |
---|---|
Package propagation manages propagation of trace context headers.
|
Package propagation manages propagation of trace context headers. |
Click to show internal directories.
Click to hide internal directories.