Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLambdaSource ¶
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.
Click to show internal directories.
Click to hide internal directories.