View a markdown version of this page

AWS::ApplicationSignals::InstrumentationConfig CodeCaptureConfiguration - AWS CloudFormation

This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.

AWS::ApplicationSignals::InstrumentationConfig CodeCaptureConfiguration

Defines what data to capture for code-level instrumentation, including arguments, return values, stack traces, local variables, and safety limits.

Syntax

To declare this entity in your CloudFormation template, use the following syntax:

JSON

{ "CaptureArguments" : [ String, ... ], "CaptureLimits" : CaptureLimitsConfig, "CaptureLocals" : [ String, ... ], "CaptureReturn" : Boolean, "CaptureStackTrace" : Boolean }

Properties

CaptureArguments

The function arguments to capture. Omit to capture defaults, use an empty list to capture none, use ["*"] to capture all arguments, or specify argument names to capture selectively (up to 10 entries).

Required: No

Type: Array of String

Minimum: 1

Maximum: 80 | 10

Update requires: Replacement

CaptureLimits

Safety limits that bound what is captured, including hit counts, string length, collection depth, and stack trace size.

Required: Yes

Type: CaptureLimitsConfig

Update requires: Replacement

CaptureLocals

The local variables to capture by name. Omit or pass an empty list to capture none. You can specify up to 20 names.

Required: No

Type: Array of String

Minimum: 1

Maximum: 80 | 20

Update requires: Replacement

CaptureReturn

Whether to capture the return value. Defaults to false.

Required: No

Type: Boolean

Update requires: Replacement

CaptureStackTrace

Whether to capture a stack trace when the instrumentation point is hit. Defaults to true.

Required: No

Type: Boolean

Update requires: Replacement