Skip to content

CaptureLimitsConfig

Source code in docs_src/capo_application_signals/types/capture_limits_config.py
class CaptureLimitsConfig(TypedDict, closed=True):
    max_hits: NotRequired["int"]
    """<p>The maximum number of times the instrumentation point can be hit before it is automatically disabled. Defaults to 100.</p>"""
    max_string_length: NotRequired["int"]
    """<p>The maximum length of captured string values in characters. Strings longer than this are truncated. Defaults to 128.</p>"""
    max_collection_width: NotRequired["int"]
    """<p>The maximum number of items to capture from any collection to prevent large payloads. Defaults to 10.</p>"""
    max_collection_depth: NotRequired["int"]
    """<p>The maximum nesting depth to traverse inside collections. Defaults to 3.</p>"""
    max_stack_frames: NotRequired["int"]
    """<p>The maximum number of stack frames to capture in stack traces. Defaults to 2.</p>"""
    max_stack_trace_size: NotRequired["int"]
    """<p>The maximum total size, in bytes, of a captured stack trace. Defaults to 1000.</p>"""
    max_object_depth: NotRequired["int"]
    """<p>The maximum depth for nested object traversal when capturing structured data. Defaults to 3.</p>"""
    max_fields_per_object: NotRequired["int"]
    """<p>The maximum number of fields to capture for any object. Defaults to 10.</p>"""

max_collection_depth instance-attribute

max_collection_depth: NotRequired[int]

The maximum nesting depth to traverse inside collections. Defaults to 3.

max_collection_width instance-attribute

max_collection_width: NotRequired[int]

The maximum number of items to capture from any collection to prevent large payloads. Defaults to 10.

max_fields_per_object instance-attribute

max_fields_per_object: NotRequired[int]

The maximum number of fields to capture for any object. Defaults to 10.

max_hits instance-attribute

max_hits: NotRequired[int]

The maximum number of times the instrumentation point can be hit before it is automatically disabled. Defaults to 100.

max_object_depth instance-attribute

max_object_depth: NotRequired[int]

The maximum depth for nested object traversal when capturing structured data. Defaults to 3.

max_stack_frames instance-attribute

max_stack_frames: NotRequired[int]

The maximum number of stack frames to capture in stack traces. Defaults to 2.

max_stack_trace_size instance-attribute

max_stack_trace_size: NotRequired[int]

The maximum total size, in bytes, of a captured stack trace. Defaults to 1000.

max_string_length instance-attribute

max_string_length: NotRequired[int]

The maximum length of captured string values in characters. Strings longer than this are truncated. Defaults to 128.