|
2 | 2 |
|
3 | 3 | ### Breaking Changes 🛠 |
4 | 4 |
|
5 | | -- [Logs](https://docs.sentry.io/product/logs/) are now enabled by default and `enable_logs` is removed. Using `sentry-rails` will automatically turn on automatic structured logging from Rails. if you want to turn it off, use: by @sl0thentr0py in [#3053](https://github.com/getsentry/sentry-ruby/pull/3053) |
| 5 | +- [Logs](https://docs.sentry.io/product/logs/) are now enabled by default and `enable_logs` is removed. by @sl0thentr0py in [#3053](https://github.com/getsentry/sentry-ruby/pull/3053) |
| 6 | + |
| 7 | + Using `sentry-rails` will automatically turn on automatic structured logging from Rails. if you want to turn it off, use: |
| 8 | + |
6 | 9 | ```ruby |
7 | 10 | Sentry.init do |config |
8 | 11 | # ... |
9 | 12 | config.rails.structured_logging.enabled = false |
10 | 13 | end |
11 | 14 | ``` |
12 | | -- Resolves: #2943 by @sl0thentr0py in [#3053](https://github.com/getsentry/sentry-ruby/pull/3053) |
13 | | -- Resolves: RUBY-177 by @sl0thentr0py in [#3053](https://github.com/getsentry/sentry-ruby/pull/3053) |
| 15 | +- [Metrics](https://docs.sentry.io/product/metrics/) are now enabled by default and `enable_metrics` is removed. by @sl0thentr0py in [#3061](https://github.com/getsentry/sentry-ruby/pull/3061) |
| 16 | +- `config.otlp.setup_otlp_traces_exporter` and `config.otlp.setup_propagator` now both default to false. by @sl0thentr0py in [#3063](https://github.com/getsentry/sentry-ruby/pull/3063) |
14 | 17 |
|
15 | 18 | ### New Features ✨ |
16 | 19 |
|
17 | 20 | #### Data Collection |
18 | 21 |
|
| 22 | +We are moving away from `send_default_pii` to a more granular configuration called [`data_collection`](https://docs.sentry.io/platforms/ruby/configuration/options/#data_collection) to allow you to precisely control the data that Sentry collects from your app. |
| 23 | +
|
| 24 | +```ruby |
| 25 | +Sentry.init do |config| |
| 26 | + # ... |
| 27 | + config.data_collection.user_info = false |
| 28 | + config.data_collection.http_bodies = [] |
| 29 | +end |
| 30 | +``` |
| 31 | + |
| 32 | +`send_default_pii` is deprecated but will continue to default to `false` and be backfilled to `data_collection` with the following values in 7.0.0: |
| 33 | + |
| 34 | +```ruby |
| 35 | +data_collection.user_info = false |
| 36 | +data_collection.cookies.mode = :off |
| 37 | +data_collection.http_headers.request.mode = :deny_list |
| 38 | +data_collection.http_headers.request.terms = %w[forwarded -ip _ip remote via _user -user] |
| 39 | +data_collection.http_headers.response.mode = :deny_list |
| 40 | +data_collection.http_headers.response.terms = %w[forwarded -ip _ip remote via _user -user] |
| 41 | +data_collection.http_bodies = [] |
| 42 | +data_collection.url_query_params.mode = :off |
| 43 | +data_collection.graphql.document = false |
| 44 | +data_collection.graphql.variables = false |
| 45 | +data_collection.database_query_data = false |
| 46 | +data_collection.queues = false |
| 47 | +data_collection.frame_context_lines = 3 |
| 48 | +``` |
| 49 | + |
| 50 | +In the next major 8.0.0, `send_default_pii` will be completely removed and we will move to more permissive defaults for `data_collection`. We recommend migrating to `data_collection` to match the behavior you want eventually. |
| 51 | + |
19 | 52 | - Make rails breadcrumbs respect data collection by @sl0thentr0py in [#3068](https://github.com/getsentry/sentry-ruby/pull/3068) |
20 | 53 | - Change stack_frame_variables to KeyValueCollection by @sl0thentr0py in [#3066](https://github.com/getsentry/sentry-ruby/pull/3066) |
21 | 54 | - Allow booleans as shorthand for KeyValueCollection fields by @sl0thentr0py in [#3065](https://github.com/getsentry/sentry-ruby/pull/3065) |
|
28 | 61 | - Add sensitive key-value collection filter by @sl0thentr0py in [#3025](https://github.com/getsentry/sentry-ruby/pull/3025) |
29 | 62 | - Add base DataCollection configuration with defaults and backfill by @sl0thentr0py in [#3022](https://github.com/getsentry/sentry-ruby/pull/3022) |
30 | 63 |
|
31 | | -### Other |
32 | | -
|
33 | | -- feat!(otlp): setup_otlp_traces_exporter and setup_propagator now default to false by @sl0thentr0py in [#3063](https://github.com/getsentry/sentry-ruby/pull/3063) |
34 | | -- [Metrics](https://docs.sentry.io/product/metrics/) are now enabled by default and `enable_metrics` is removed. by @sl0thentr0py in [#3061](https://github.com/getsentry/sentry-ruby/pull/3061) |
35 | | -
|
36 | 64 | ## 6.7.0 |
37 | 65 |
|
38 | 66 | ### New Features ✨ |
|
0 commit comments