@@ -97,10 +97,6 @@ class Configuration
9797 # @return [Array<Symbol>]
9898 attr_reader :breadcrumbs_logger
9999
100- # Whether to capture local variables from the raised exception's frame. Default is false.
101- # @return [Boolean]
102- attr_accessor :capture_exception_frame_locals
103-
104100 # Max number of breadcrumbs a breadcrumb buffer can hold
105101 # @return [Integer]
106102 attr_accessor :max_breadcrumbs
@@ -140,6 +136,22 @@ class Configuration
140136 attr_accessor :inspect_exception_causes_for_exclusion
141137 alias inspect_exception_causes_for_exclusion? inspect_exception_causes_for_exclusion
142138
139+ # Whether to capture local variables from the raised exception's frame. Default is false.
140+ # @return [Boolean]
141+ attr_accessor :include_local_variables
142+
143+ # @deprecated Use {#include_local_variables} instead.
144+ alias_method :capture_exception_frame_locals , :include_local_variables
145+
146+ # @deprecated Use {#include_local_variables=} instead.
147+ def capture_exception_frame_locals = ( value )
148+ log_warn <<~MSG
149+ `capture_exception_frame_locals` is now deprecated in favor of `include_local_variables`.
150+ MSG
151+
152+ self . include_local_variables = value
153+ end
154+
143155 # You may provide your own LineCache for matching paths with source files.
144156 # This may be useful if you need to get source code from places other than the disk.
145157 # @see LineCache
@@ -277,7 +289,7 @@ def initialize
277289 self . max_breadcrumbs = BreadcrumbBuffer ::DEFAULT_SIZE
278290 self . breadcrumbs_logger = [ ]
279291 self . context_lines = 3
280- self . capture_exception_frame_locals = false
292+ self . include_local_variables = false
281293 self . environment = environment_from_env
282294 self . enabled_environments = [ ]
283295 self . exclude_loggers = [ ]
0 commit comments