WithFunctionARN includes the invoked function ARN in log records.
()
| 33 | |
| 34 | // WithFunctionARN includes the invoked function ARN in log records. |
| 35 | func 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). |
| 42 | func WithTenantID() LogOption { |
no outgoing calls
searching dependent graphs…