Skip to content

Commit 5b44290

Browse files
authored
Disable sidecar sending on lambda (#2904)
Signed-off-by: Bob Weinand <[email protected]>
1 parent 16b0255 commit 5b44290

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: ext/configuration.c

+7
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,13 @@ bool ddtrace_config_minit(int module_number) {
180180
config_entries[DDTRACE_CONFIG_DD_TRACE_AUTO_FLUSH_ENABLED].default_encoded_value = (zai_str) ZAI_STR_FROM_CSTR("true");
181181
}
182182

183+
#ifndef _WIN32
184+
// Sidecar is currently broken - no traces sent. Investigation pending, background sender just works though.
185+
if (getenv("AWS_LAMBDA_FUNCTION_NAME")) {
186+
config_entries[DDTRACE_CONFIG_DD_TRACE_SIDECAR_TRACE_SENDER].default_encoded_value = (zai_str) ZAI_STR_FROM_CSTR("false");
187+
}
188+
#endif
189+
183190
if (!zai_config_minit(config_entries, (sizeof config_entries / sizeof *config_entries), dd_ini_env_to_ini_name,
184191
module_number)) {
185192
ddtrace_log_ginit();

0 commit comments

Comments
 (0)