Skip to content

Commit c3bc072

Browse files
committed
fix changelog
1 parent 28e4246 commit c3bc072

1 file changed

Lines changed: 39 additions & 8 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 39 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,56 @@
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 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).
23+
It allows you to precisely control the data that Sentry collects from your app.
24+
25+
```ruby
26+
Sentry.init do |config|
27+
# ...
28+
config.data_collection.user_info = false
29+
config.data_collection.http_bodies = []
30+
end
31+
```
32+
33+
`send_default_pii` is deprecated but will continue to default to `false`.
34+
`data_collection` will be backfilled when `send_default_pii = false` with the following values in 7.0.0:
35+
36+
```ruby
37+
data_collection.user_info = false
38+
data_collection.cookies.mode = :off
39+
data_collection.http_headers.request.mode = :deny_list
40+
data_collection.http_headers.request.terms = %w[forwarded -ip _ip remote via _user -user]
41+
data_collection.http_headers.response.mode = :deny_list
42+
data_collection.http_headers.response.terms = %w[forwarded -ip _ip remote via _user -user]
43+
data_collection.http_bodies = []
44+
data_collection.url_query_params.mode = :off
45+
data_collection.graphql.document = false
46+
data_collection.graphql.variables = false
47+
data_collection.database_query_data = false
48+
data_collection.queues = false
49+
data_collection.frame_context_lines = 3
50+
```
51+
52+
In 8.0.0, `send_default_pii` will be removed and we will move to more permissive defaults for `data_collection`.
53+
We recommend migrating to `data_collection` to match the behavior you want eventually.
54+
1955
- Make rails breadcrumbs respect data collection by @sl0thentr0py in [#3068](https://github.com/getsentry/sentry-ruby/pull/3068)
2056
- Change stack_frame_variables to KeyValueCollection by @sl0thentr0py in [#3066](https://github.com/getsentry/sentry-ruby/pull/3066)
2157
- Allow booleans as shorthand for KeyValueCollection fields by @sl0thentr0py in [#3065](https://github.com/getsentry/sentry-ruby/pull/3065)
@@ -28,11 +64,6 @@
2864
- Add sensitive key-value collection filter by @sl0thentr0py in [#3025](https://github.com/getsentry/sentry-ruby/pull/3025)
2965
- Add base DataCollection configuration with defaults and backfill by @sl0thentr0py in [#3022](https://github.com/getsentry/sentry-ruby/pull/3022)
3066

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-
3667
## 6.7.0
3768

3869
### New Features ✨

0 commit comments

Comments
 (0)