MCPcopy
hub / github.com/aws/aws-lambda-go / WithFunctionARN

Function WithFunctionARN

lambdacontext/logger.go:35–39  ·  view source on GitHub ↗

WithFunctionARN includes the invoked function ARN in log records.

()

Source from the content-addressed store, hash-verified

33
34// WithFunctionARN includes the invoked function ARN in log records.
35func WithFunctionARN() LogOption {
36 return func(o *logOptions) {
37 o.fields = append(o.fields, field{"functionArn", func(lc *LambdaContext) string { return lc.InvokedFunctionArn }})
38 }
39}
40
41// WithTenantID includes the tenant ID in log records (for multi-tenant functions).
42func WithTenantID() LogOption {

Callers 7

ExampleWithFunctionARNFunction · 0.92
TestWithFunctionARNFunction · 0.85
TestNewLogHandlerFunction · 0.85

Calls

no outgoing calls

Tested by 7

ExampleWithFunctionARNFunction · 0.74
TestWithFunctionARNFunction · 0.68
TestNewLogHandlerFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…