File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -216,6 +216,11 @@ static void _register_testing_objects(void);
216
216
217
217
bool dd_config_minit (int module_number )
218
218
{
219
+ // We have to disable remote config by default on lambda due to issues with the sidecar there. We'll eventually fix it though.
220
+ if (getenv ("AWS_LAMBDA_FUNCTION_NAME" )) {
221
+ config_entries [DDAPPSEC_CONFIG_DD_REMOTE_CONFIG_ENABLED ].default_encoded_value = (zai_str ) ZAI_STR_FROM_CSTR ("false" );
222
+ }
223
+
219
224
if (!zai_config_minit (config_entries ,
220
225
(sizeof config_entries / sizeof * config_entries ),
221
226
dd_ini_env_to_ini_name , module_number )) {
Original file line number Diff line number Diff line change @@ -183,7 +183,9 @@ bool ddtrace_config_minit(int module_number) {
183
183
#ifndef _WIN32
184
184
// Sidecar is currently broken - no traces sent. Investigation pending, background sender just works though.
185
185
if (getenv ("AWS_LAMBDA_FUNCTION_NAME" )) {
186
+ config_entries [DDTRACE_CONFIG_DD_REMOTE_CONFIG_ENABLED ].default_encoded_value = (zai_str ) ZAI_STR_FROM_CSTR ("false" );
186
187
config_entries [DDTRACE_CONFIG_DD_TRACE_SIDECAR_TRACE_SENDER ].default_encoded_value = (zai_str ) ZAI_STR_FROM_CSTR ("false" );
188
+ config_entries [DDTRACE_CONFIG_DD_INSTRUMENTATION_TELEMETRY_ENABLED ].default_encoded_value = (zai_str ) ZAI_STR_FROM_CSTR ("false" );
187
189
}
188
190
#endif
189
191
You can’t perform that action at this time.
0 commit comments