Skip to content

Commit c676e9d

Browse files
committed
[SVLS-9359] update comment
1 parent 11f113a commit c676e9d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/datadog-lambda.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,18 +183,18 @@ export class DatadogLambda extends Construct {
183183
}
184184

185185
/**
186-
* Pre-set a Datadog environment variable on `lambdaFunction`. Call this before
186+
* Pre-set a Datadog environment variable on `lambdaFunction`. Call before
187187
* `addLambdaFunctions([lambdaFunction])`.
188188
*
189-
* Precedence, highest wins:
189+
* Precedence, highest first:
190190
* 1. `func.addEnvironment()` called after `addLambdaFunctions()`.
191191
* 2. `DatadogLambdaProps` fields dedicated to `key` (for example, `env` for `DD_ENV`).
192192
* 3. This method.
193193
* 4. Construct defaults (for example, `enableDatadogTracing` for `DD_TRACE_ENABLED`).
194194
*
195-
* `DD_TAGS` is merged, not replaced: props tags first, then per-function tags from this
196-
* method, then git tags from source code integration. On duplicate tag keys, the later
197-
* source wins.
195+
* `addLambdaFunctions` merges `DD_TAGS` from `DatadogLambdaProps.tags`, per-function
196+
* tags from this method, and git tags from source code integration, in that order.
197+
* On duplicate tag keys, the later source wins.
198198
*/
199199
public setEnvironment(lambdaFunction: LambdaFunction, key: string, value: string): void {
200200
const [extractedLambdaFunction] = extractSingletonFunctions([lambdaFunction]);

0 commit comments

Comments
 (0)