Skip to content
v2.274.0

CodeCaptureConfigurationProperty Struct Added in v2.274.0 ​

Defines what data to capture for code-level instrumentation.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_applicationsignals as applicationsignals } from 'aws-cdk-lib';
const codeCaptureConfigurationProperty: applicationsignals.CfnInstrumentationConfig.CodeCaptureConfigurationProperty = {
  captureLimits: {
    maxCollectionDepth: 123,
    maxCollectionWidth: 123,
    maxFieldsPerObject: 123,
    maxHits: 123,
    maxObjectDepth: 123,
    maxStackFrames: 123,
    maxStackTraceSize: 123,
    maxStringLength: 123,
  },

  // the properties below are optional
  captureArguments: ['captureArguments'],
  captureLocals: ['captureLocals'],
  captureReturn: false,
  captureStackTrace: false,
};

Properties ​

captureArgumentsstring[]capture_argumentstyping.List[str]captureArgumentsList<String>CaptureArgumentsstring[]CaptureArguments*[]*string#
The function arguments to capture.
captureLimitsIResolvable | CfnInstrumentationConfig.CaptureLimitsConfigPropertycapture_limitstyping.Union[IResolvable, CaptureLimitsConfigProperty]captureLimitsIResolvableCaptureLimitsIResolvableCaptureLimitsinterface{}required#
Safety limits that bound what is captured.
captureLocalsstring[]capture_localstyping.List[str]captureLocalsList<String>CaptureLocalsstring[]CaptureLocals*[]*string#
The local variables to capture by name.
captureReturnboolean | IResolvablecapture_returntyping.Union[bool, IResolvable]captureReturnBooleanCaptureReturnboolCaptureReturninterface{}#
Whether to capture the return value.

Defaults to false.

captureStackTraceboolean | IResolvablecapture_stack_tracetyping.Union[bool, IResolvable]captureStackTraceBooleanCaptureStackTraceboolCaptureStackTraceinterface{}#
Whether to capture a stack trace.

Defaults to true.