Skip to content

Commit

Permalink
feat: set default value
Browse files Browse the repository at this point in the history
  • Loading branch information
ren-yamanashi committed Dec 19, 2024
1 parent ddcabe2 commit 9c36073
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-lambda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1454,7 +1454,7 @@ new lambda.Function(this, 'Function', {
Lambda functions support X-Ray tracing configuration through the `tracingMode` property. You can specify one of two tracing modes:

* `ACTIVE` - Sets the X-Ray tracing mode to active.
* `PASS_THROUGH` - Sets the X-Ray tracing mode to pass-through.
* `PASS_THROUGH` - (default) Sets the X-Ray tracing mode to pass-through.

Example:

Expand Down
2 changes: 2 additions & 0 deletions packages/aws-cdk-lib/aws-lambda/lib/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,8 @@ export interface FunctionProps extends FunctionOptions {
*
* To sample and record incoming requests, set tracingMode to Active
*
* @default TracingMode.PASS_THROUGH
*
* @see https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-tracingconfig.html#cfn-lambda-function-tracingconfig-mode
*/
readonly tracingMode?: TracingMode;
Expand Down

0 comments on commit 9c36073

Please sign in to comment.