We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ELASTIC_APM_LAMBDA_DISABLE_LOGS_API
1 parent 22b374b commit 1980ceaCopy full SHA for 1980cea
main.go
@@ -47,6 +47,11 @@ func main() {
47
app.WithAWSConfig(cfg),
48
}
49
50
+ rawDisableLogsAPI := os.Getenv("ELASTIC_APM_LAMBDA_DISABLE_LOGS_API")
51
+ if disableLogsAPI, _ := strconv.ParseBool(rawDisableLogsAPI); disableLogsAPI {
52
+ appConfigs = append(appConfigs, app.WithoutLogsAPI())
53
+ }
54
+
55
// ELASTIC_APM_LAMBDA_CAPTURE_LOGS indicate if the lambda extension
56
// should capture logs, the value defaults to true i.e. the extension
57
// will capture function logs by default
0 commit comments