You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -287,13 +287,13 @@ To configure Datadog variables for every instrumented function, set the matching
287
287
To override a value on a single function, use one of:
288
288
289
289
-`datadogLambda.setEnvironment(func, key, value)` before `datadogLambda.addLambdaFunctions()`, to override a construct default while letting the construct finish instrumenting the function.
290
-
-`func.addEnvironment(key, value)` after `datadogLambda.addLambdaFunctions()`, to set the final value and bypass the construct entirely.
290
+
-`func.addEnvironment(key, value)` after `datadogLambda.addLambdaFunctions()`, to override the value set during instrumentation.
291
291
292
292
When more than one source sets the same key, the following order applies (highest precedence first):
293
293
294
-
1.`func.addEnvironment(key, value)` called after `datadogLambda.addLambdaFunctions()`
295
-
2.`DatadogLambdaProps` fields dedicated to that key. These props always overwrite the same key set through.`datadogLambda.setEnvironment`:
296
-
- Unified service tagging: `env`, `service`, `version`, `tags`
294
+
1.`func.addEnvironment(key, value)` called after `datadogLambda.addLambdaFunctions()`.
295
+
2.`DatadogLambdaProps` fields dedicated to that key. These fields overwrite a value for the same key set through `datadogLambda.setEnvironment()`:
296
+
- Unified service tagging: `env`, `service`, `version`
0 commit comments