logs

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 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 CollectionRouteInfo

type CollectionRouteInfo struct {
	LogChannel             chan *logConfig.ChannelMessage
	MetricChannel          chan []metrics.MetricSample
	ExtraTags              *Tags
	ExecutionContext       *ExecutionContext
	LogsEnabled            bool
	EnhancedMetricsEnabled bool
}

CollectionRouteInfo is the route on which the AWS environment is sending the logs for the extension to collect them. It is attached to the main HTTP server already receiving hits from the libraries client.

func (*CollectionRouteInfo) ServeHTTP

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

ServeHTTP - see type CollectionRouteInfo comment.

type ExecutionContext

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

ExecutionContext represents the execution context

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