Skip to content

Commit 91c2d87

Browse files
committed
fix changelog
1 parent 28e4246 commit 91c2d87

1 file changed

Lines changed: 36 additions & 8 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,53 @@
22

33
### Breaking Changes 🛠
44

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+
69
```ruby
710
Sentry.init do |config
811
# ...
912
config.rails.structured_logging.enabled = false
1013
end
1114
```
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)
1417
1518
### New Features ✨
1619
1720
#### Data Collection
1821
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+
1952
- Make rails breadcrumbs respect data collection by @sl0thentr0py in [#3068](https://github.com/getsentry/sentry-ruby/pull/3068)
2053
- Change stack_frame_variables to KeyValueCollection by @sl0thentr0py in [#3066](https://github.com/getsentry/sentry-ruby/pull/3066)
2154
- Allow booleans as shorthand for KeyValueCollection fields by @sl0thentr0py in [#3065](https://github.com/getsentry/sentry-ruby/pull/3065)
@@ -28,11 +61,6 @@
2861
- Add sensitive key-value collection filter by @sl0thentr0py in [#3025](https://github.com/getsentry/sentry-ruby/pull/3025)
2962
- Add base DataCollection configuration with defaults and backfill by @sl0thentr0py in [#3022](https://github.com/getsentry/sentry-ruby/pull/3022)
3063

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-
3664
## 6.7.0
3765

3866
### New Features ✨

0 commit comments

Comments
 (0)