Commit 6384d35
committed
fix: disable remote configuration by default in Lambda
Remote configuration relies on /dev/shm for shared memory, which is
unavailable in AWS Lambda. Set DD_REMOTE_CONFIGURATION_ENABLED=false
before ddtrace loads (following the same pattern used for
DD_TRACE_STATS_COMPUTATION_ENABLED and
DD_INSTRUMENTATION_TELEMETRY_ENABLED) so the tracer knows RC is
disabled from the start.
This is a defense-in-depth companion to the primary fix in dd-trace-py
(DataDog/dd-trace-py#17550) which skips the shared memory allocation
entirely when in_aws_lambda() is detected.
Integration test snapshots will need regenerating since ddtrace startup
behavior changes slightly when RC is disabled from the start vs
disabled later by the ASM Lambda guard.
Resolves: #7851 parent 354a074 commit 6384d35
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
144 | 149 | | |
145 | 150 | | |
146 | 151 | | |
| |||
0 commit comments