CodeCaptureConfiguration
Defines what data to capture for code-level instrumentation, including arguments, return values, stack traces, local variables, and safety limits.
Contents
- CaptureLimits
-
Safety limits that bound what is captured, including hit counts, string length, collection depth, and stack trace size.
Type: CaptureLimitsConfig object
Required: Yes
- 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).Type: Array of strings
Array Members: Minimum number of 0 items. Maximum number of 10 items.
Length Constraints: Minimum length of 1. Maximum length of 80.
Required: No
- CaptureLocals
-
The local variables to capture by name. Omit or pass an empty list to capture none. You can specify up to 20 names.
Type: Array of strings
Array Members: Minimum number of 0 items. Maximum number of 20 items.
Length Constraints: Minimum length of 1. Maximum length of 80.
Required: No
- CaptureReturn
-
Whether to capture the return value. Defaults to false.
Type: Boolean
Required: No
- CaptureStackTrace
-
Whether to capture a stack trace when the instrumentation point is hit. Defaults to true.
Type: Boolean
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: