File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ] ) ;
You can’t perform that action at this time.
0 commit comments