Skip to content

Commit 39f48d5

Browse files
authored
fix: disable remote configuration by default in Lambda (#797)
1 parent 5e8feaa commit 39f48d5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

datadog_lambda/config.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@ def _reset(self):
141141
"enabled" if config.fips_mode_enabled else "not enabled",
142142
)
143143

144+
# Remote configuration relies on /dev/shm which is unavailable in Lambda.
145+
# Disable it before ddtrace loads to avoid the shared-memory warning.
146+
if "DD_REMOTE_CONFIGURATION_ENABLED" not in os.environ:
147+
os.environ["DD_REMOTE_CONFIGURATION_ENABLED"] = "false"
148+
144149
# disable css to prevent double counting in lambda
145150
os.environ["DD_TRACE_STATS_COMPUTATION_ENABLED"] = "false"
146151

0 commit comments

Comments
 (0)