Skip to content

Commit d879a8b

Browse files
committed
Update CHANGELOG
1 parent 13863bc commit d879a8b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,18 @@
1313
config.sidekiq.propagate_traces = false unless Rails.const_defined?('Server')
1414
```
1515
- Only expose `active_storage` keys on span data if `send_default_pii` is on ([#2589](https://github.com/getsentry/sentry-ruby/pull/2589))
16-
- Add `Sentry.capture_log` ([#2606](https://github.com/getsentry/sentry-ruby/pull/2617))
16+
- Add new `Sentry.logger` for [Structured Logging](https://develop.sentry.dev/sdk/telemetry/logs/) feature ([#2620](https://github.com/getsentry/sentry-ruby/pull/2620)).
17+
18+
To enable structured logging you need to turn on the `enable_logs` configuration option:
19+
```ruby
20+
Sentry.init do |config|
21+
# ... your setup ...
22+
config.enable_logs = true
23+
end
24+
```
25+
:warning: When this is enabled, previous `Sentry.logger` should no longer be used for internal SDK
26+
logging - it was replaced by `Sentry.configuration.sdk_logger` and should be used only by the SDK
27+
itself and its extensions.
1728
- New configuration option called `active_job_report_on_retry_error` which enables reporting errors on each retry error ([#2617](https://github.com/getsentry/sentry-ruby/pull/2617))
1829

1930
### Bug Fixes

0 commit comments

Comments
 (0)