Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions datadog_lambda/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ def _reset(self):
"enabled" if config.fips_mode_enabled else "not enabled",
)

# Remote configuration relies on /dev/shm which is unavailable in Lambda.
# Disable it before ddtrace loads to avoid the shared-memory warning.
if "DD_REMOTE_CONFIGURATION_ENABLED" not in os.environ:
os.environ["DD_REMOTE_CONFIGURATION_ENABLED"] = "false"

# disable css to prevent double counting in lambda
os.environ["DD_TRACE_STATS_COMPUTATION_ENABLED"] = "false"

Expand Down
Loading