trace

package
v0.0.0-...-bc42224 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

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 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(enabled bool, loadConfig Load, lambdaSpanChan chan<- *pb.Span, coldStartSpanId uint64) ServerlessTraceAgent

Start starts the agent

Directories

Path Synopsis
Package propagation manages propagation of trace context headers.
Package propagation manages propagation of trace context headers.

Jump to

Keyboard shortcuts

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