Skip to content

Commit 231240e

Browse files
committed
[SVLS-9359] clean up readme pt 2
1 parent d2fb001 commit 231240e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,13 +287,13 @@ To configure Datadog variables for every instrumented function, set the matching
287287
To override a value on a single function, use one of:
288288

289289
- `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.
291291

292292
When more than one source sets the same key, the following order applies (highest precedence first):
293293

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`
297297
- Cold-start tracing: `enableColdStartTracing`, `minColdStartTraceDuration`, `coldStartTraceSkipLibs`
298298
- Other tracer settings: `enableProfiling`, `encodeAuthorizerContext`, `decodeAuthorizerContext`, `apmFlushDeadline`
299299
- LLM Observability: `llmObsEnabled`, `llmObsMlApp`, `llmObsAgentlessEnabled`

0 commit comments

Comments
 (0)