Class CaptureLimitsConfig
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CaptureLimitsConfig.Builder,CaptureLimitsConfig>
Guardrails that prevent instrumentation from impacting application performance by limiting how much data is captured.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic CaptureLimitsConfig.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final IntegerThe maximum nesting depth to traverse inside collections.final IntegerThe maximum number of items to capture from any collection to prevent large payloads.final IntegerThe maximum number of fields to capture for any object.final IntegermaxHits()The maximum number of times the instrumentation point can be hit before it is automatically disabled.final IntegerThe maximum depth for nested object traversal when capturing structured data.final IntegerThe maximum number of stack frames to capture in stack traces.final IntegerThe maximum total size, in bytes, of a captured stack trace.final IntegerThe maximum length of captured string values in characters.static Class<? extends CaptureLimitsConfig.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
maxHits
The maximum number of times the instrumentation point can be hit before it is automatically disabled. Defaults to 100.
- Returns:
- The maximum number of times the instrumentation point can be hit before it is automatically disabled. Defaults to 100.
-
maxStringLength
The maximum length of captured string values in characters. Strings longer than this are truncated. Defaults to 128.
- Returns:
- The maximum length of captured string values in characters. Strings longer than this are truncated. Defaults to 128.
-
maxCollectionWidth
The maximum number of items to capture from any collection to prevent large payloads. Defaults to 10.
- Returns:
- The maximum number of items to capture from any collection to prevent large payloads. Defaults to 10.
-
maxCollectionDepth
The maximum nesting depth to traverse inside collections. Defaults to 3.
- Returns:
- The maximum nesting depth to traverse inside collections. Defaults to 3.
-
maxStackFrames
The maximum number of stack frames to capture in stack traces. Defaults to 2.
- Returns:
- The maximum number of stack frames to capture in stack traces. Defaults to 2.
-
maxStackTraceSize
The maximum total size, in bytes, of a captured stack trace. Defaults to 1000.
- Returns:
- The maximum total size, in bytes, of a captured stack trace. Defaults to 1000.
-
maxObjectDepth
The maximum depth for nested object traversal when capturing structured data. Defaults to 3.
- Returns:
- The maximum depth for nested object traversal when capturing structured data. Defaults to 3.
-
maxFieldsPerObject
The maximum number of fields to capture for any object. Defaults to 10.
- Returns:
- The maximum number of fields to capture for any object. Defaults to 10.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<CaptureLimitsConfig.Builder,CaptureLimitsConfig> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-