from ddtrace.internal.settings._core import DDConfig


class ExceptionReplayConfig(DDConfig):
    __prefix__ = "dd.exception"

    enabled = DDConfig.v(
        bool,
        "replay.enabled",
        default=False,
        help_type="Boolean",
        help="Enable automatic capturing of exception debugging information",
    )
    max_frames = DDConfig.v(
        int,
        "replay.capture_max_frames",
        default=8,
        help_type="int",
        help="The maximum number of frames to capture for each exception",
    )


config = ExceptionReplayConfig()
