logs

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLambdaSource

func GetLambdaSource() *logConfig.LogSource

GetLambdaSource returns the LogSource used by the extension

Types

type ExecutionContext

type ExecutionContext struct {
	ARN                string
	LastRequestID      string
	ColdstartRequestID string
	LastLogRequestID   string
	Coldstart          bool
	StartTime          time.Time
}

ExecutionContext represents the execution context

type LambdaLogsCollector

type LambdaLogsCollector struct {
	LogChannel             chan *logConfig.ChannelMessage
	MetricChannel          chan []metrics.MetricSample
	ExtraTags              *Tags
	ExecutionContext       *ExecutionContext
	LogsEnabled            bool
	EnhancedMetricsEnabled bool
	// HandleRuntimeDone is the function to be called when a platform.runtimeDone log message is received
	HandleRuntimeDone func()
}

LambdaLogsCollector is the route to which the AWS environment is sending the logs for the extension to collect them.

func (*LambdaLogsCollector) ServeHTTP

func (c *LambdaLogsCollector) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP - see type LambdaLogsCollector comment.

type Tags

type Tags struct {
	Tags []string
}

Tags contains the actual array of Tags (useful for passing it via reference)

Jump to

Keyboard shortcuts

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