File tree Expand file tree Collapse file tree 5 files changed +3
-38
lines changed
rails-6.0/config/initializers
rails-7.0/config/initializers
spec/dummy/test_rails_app Expand file tree Collapse file tree 5 files changed +3
-38
lines changed Original file line number Diff line number Diff line change 5
5
config . traces_sample_rate = 1.0 # set a float between 0.0 and 1.0 to enable performance monitoring
6
6
config . dsn = 'https://2fb45f003d054a7ea47feb45898f7649@o447951.ingest.sentry.io/5434472'
7
7
config . release = `git branch --show-current`
8
- config . capture_exception_frame_locals = true
8
+ config . include_local_variables = true
9
9
# you can use the pre-defined job for the async callback
10
10
#
11
11
# config.async = lambda do |event, hint|
Original file line number Diff line number Diff line change 5
5
config . traces_sample_rate = 1.0 # set a float between 0.0 and 1.0 to enable performance monitoring
6
6
config . dsn = 'https://2fb45f003d054a7ea47feb45898f7649@o447951.ingest.sentry.io/5434472'
7
7
config . release = `git branch --show-current`
8
- config . capture_exception_frame_locals = true
8
+ config . include_local_variables = true
9
9
# you can use the pre-defined job for the async callback
10
10
#
11
11
# config.async = lambda do |event, hint|
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ def self.name
82
82
config . transport . transport_class = Sentry ::DummyTransport
83
83
# for sending events synchronously
84
84
config . background_worker_threads = 0
85
- config . capture_exception_frame_locals = true
85
+ config . include_local_variables = true
86
86
yield ( config , app ) if block_given?
87
87
end
88
88
end
Original file line number Diff line number Diff line change @@ -151,18 +151,6 @@ class Configuration
151
151
# @return [Boolean, String]
152
152
attr_accessor :spotlight
153
153
154
- # @deprecated Use {#include_local_variables} instead.
155
- alias_method :capture_exception_frame_locals , :include_local_variables
156
-
157
- # @deprecated Use {#include_local_variables=} instead.
158
- def capture_exception_frame_locals = ( value )
159
- log_warn <<~MSG
160
- `capture_exception_frame_locals` is now deprecated in favor of `include_local_variables`.
161
- MSG
162
-
163
- self . include_local_variables = value
164
- end
165
-
166
154
# You may provide your own LineCache for matching paths with source files.
167
155
# This may be useful if you need to get source code from places other than the disk.
168
156
# @see LineCache
Original file line number Diff line number Diff line change 1
1
require 'spec_helper'
2
2
3
3
RSpec . describe Sentry ::Configuration do
4
- describe "#capture_exception_frame_locals" do
5
- it "passes/received the value to #include_local_variables" do
6
- subject . capture_exception_frame_locals = true
7
- expect ( subject . include_local_variables ) . to eq ( true )
8
- expect ( subject . capture_exception_frame_locals ) . to eq ( true )
9
-
10
- subject . capture_exception_frame_locals = false
11
- expect ( subject . include_local_variables ) . to eq ( false )
12
- expect ( subject . capture_exception_frame_locals ) . to eq ( false )
13
- end
14
-
15
- it "prints deprecation message when being assigned" do
16
- string_io = StringIO . new
17
- subject . logger = Logger . new ( string_io )
18
-
19
- subject . capture_exception_frame_locals = true
20
-
21
- expect ( string_io . string ) . to include (
22
- "WARN -- sentry: `capture_exception_frame_locals` is now deprecated in favor of `include_local_variables`."
23
- )
24
- end
25
- end
26
-
27
4
describe "#csp_report_uri" do
28
5
it "returns nil if the dsn is not present" do
29
6
expect ( subject . csp_report_uri ) . to eq ( nil )
You can’t perform that action at this time.
0 commit comments