Skip to content

Commit 9afd9d1

Browse files
authored
Remove deprecated config.capture_exception_frame_locals (#2730)
* Remove deprecated capture_exception_frame_locals * Remove deprecated config.enable_tracing (#2731) * Remove deprecated config.enable_tracing * Remove deprecated `config.logger` (#2732) * Remove deprecated config.logger * Remove deprecated Sentry::Rails::Tracing::ActionControllerSubscriber (#2733)
1 parent 7ca11b0 commit 9afd9d1

File tree

15 files changed

+19
-275
lines changed

15 files changed

+19
-275
lines changed

CHANGELOG.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,19 @@
22

33
### Breaking Changes
44

5-
- Remove `config.async` [#1894](https://github.com/getsentry/sentry-ruby/pull/1894)
5+
- Remove deprecated `config.async` [#1894](https://github.com/getsentry/sentry-ruby/pull/1894)
6+
- Remove deprecated `Sentry::Metrics` and `config.metrics` and all metrics related code ([#2729](https://github.com/getsentry/sentry-ruby/pull/2729))
7+
- Remove deprecated `config.capture_exception_frame_locals`, use `include_local_variables` instead ([#2730](https://github.com/getsentry/sentry-ruby/pull/2730))
8+
- Remove deprecated `config.enable_tracing`, use `config.traces_sample_rate = 1.0` instead ([#2731](https://github.com/getsentry/sentry-ruby/pull/2731))
9+
- Remove deprecated `config.logger=`, use `config.sdk_logger=` instead ([#2732](https://github.com/getsentry/sentry-ruby/pull/2732))
10+
- Remove deprecated `Sentry::Rails::Tracing::ActionControllerSubscriber` ([#2733](https://github.com/getsentry/sentry-ruby/pull/2733))
11+
- Remove `:monotonic_active_support_logger` from `config.breadcrumbs_logger` ([#2717](https://github.com/getsentry/sentry-ruby/pull/2717))
612
- Migrate from to_hash to to_h ([#2351](https://github.com/getsentry/sentry-ruby/pull/2351))
713
- Add `before_send_check_in` for applying to `CheckInEvent` ([#2703](https://github.com/getsentry/sentry-ruby/pull/2703))
814
- Returning a hash from `before_send` and `before_send_transaction` is no longer supported and will drop the event.
915
- Remove stacktrace trimming ([#2714](https://github.com/getsentry/sentry-ruby/pull/2714))
1016
- `config.enabled_environments` now defaults to `nil` instead of `[]` for sending to all environments ([#2716](https://github.com/getsentry/sentry-ruby/pull/2716))
11-
- Remove `:monotonic_active_support_logger` from `config.breadcrumbs_logger` ([#2717](https://github.com/getsentry/sentry-ruby/pull/2717))
1217
- Requests which have response status codes in the inclusive ranges `[(301..303), (305..399), (401..404)]` will no longer create transactions by default. See `config.trace_ignore_status_codes` below to control what gets traced.
13-
- Remove `Sentry::Metrics` and `config.metrics` and all metrics related code ([#2729](https://github.com/getsentry/sentry-ruby/pull/2729))
1418

1519
### Features
1620

sentry-rails/benchmarks/allocation_comparison.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
end
1212

1313
app = create_app do |config|
14-
config.logger = ::Logger.new(STDOUT)
14+
config.sdk_logger = ::Logger.new(STDOUT)
1515
config.transport.transport_class = Sentry::BenchmarkTransport
1616
config.breadcrumbs_logger = [:active_support_logger]
1717
end

sentry-rails/benchmarks/allocation_report.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
end
1212

1313
app = create_app do |config|
14-
config.logger = ::Logger.new(STDOUT)
14+
config.sdk_logger = ::Logger.new(STDOUT)
1515
config.transport.transport_class = Sentry::BenchmarkTransport
1616
config.breadcrumbs_logger = [:active_support_logger]
1717
end

sentry-rails/examples/minimum-rails/app.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
Sentry.init do |config|
1717
config.dsn = 'https://2fb45f003d054a7ea47feb45898f7649@o447951.ingest.sentry.io/5434472'
18-
config.logger = Logger.new($stdout)
18+
config.sdk_logger = Logger.new($stdout)
1919
end
2020

2121
ActiveSupport::Deprecation.silenced = true

sentry-rails/examples/rails-6.0/config/initializers/sentry.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
config.traces_sample_rate = 1.0 # set a float between 0.0 and 1.0 to enable performance monitoring
66
config.dsn = 'https://2fb45f003d054a7ea47feb45898f7649@o447951.ingest.sentry.io/5434472'
77
config.release = `git branch --show-current`
8-
config.capture_exception_frame_locals = true
8+
config.include_local_variables = true
99
# you can use the pre-defined job for the async callback
1010
#
1111
# config.async = lambda do |event, hint|

sentry-rails/examples/rails-7.0/config/initializers/sentry.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
config.traces_sample_rate = 1.0 # set a float between 0.0 and 1.0 to enable performance monitoring
66
config.dsn = 'https://2fb45f003d054a7ea47feb45898f7649@o447951.ingest.sentry.io/5434472'
77
config.release = `git branch --show-current`
8-
config.capture_exception_frame_locals = true
8+
config.include_local_variables = true
99
# you can use the pre-defined job for the async callback
1010
#
1111
# config.async = lambda do |event, hint|

sentry-rails/lib/sentry/rails/configuration.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# frozen_string_literal: true
22

3-
require "sentry/rails/tracing/action_controller_subscriber"
43
require "sentry/rails/tracing/action_view_subscriber"
54
require "sentry/rails/tracing/active_record_subscriber"
65
require "sentry/rails/tracing/active_storage_subscriber"

sentry-rails/lib/sentry/rails/instrument_payload_cleanup_helper.rb

Lines changed: 0 additions & 15 deletions
This file was deleted.

sentry-rails/lib/sentry/rails/tracing/action_controller_subscriber.rb

Lines changed: 0 additions & 43 deletions
This file was deleted.

sentry-rails/spec/dummy/test_rails_app/app.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def self.name
105105
config.transport.transport_class = Sentry::DummyTransport
106106
# for sending events synchronously
107107
config.background_worker_threads = 0
108-
config.capture_exception_frame_locals = true
108+
config.include_local_variables = true
109109
yield(config, app) if block_given?
110110
end
111111
end

0 commit comments

Comments
 (0)