Update sentry-ruby monorepo to v7 #67

Open
renovate wants to merge 1 commit from renovate/major-sentry-ruby-monorepo into main
Collaborator

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
sentry-rails (source, changelog) 6.6.2 → 7.1.0 age adoption passing confidence
sentry-ruby (source, changelog) 6.6.2 → 7.1.0 age adoption passing confidence

Release Notes

getsentry/sentry-ruby (sentry-rails)

v7.1.0

Compare Source

Breaking Changes 🛠
  • Disable Rails Structured Logging by default. by @​sl0thentr0py in #​3102

    Since enable_logs was removed in 7.0.0 and the community did not like the automatic enabling of Rails Structured Logging, we are disabling it in this minor.
    We apologize for the confusion caused. If you want to turn it on, please use:

    Sentry.init do |config|
      # ...
      config.rails.structured_logging.enabled = true
    end
    
  • fix!(tracing): Remove 302/303 from default trace_ignore_status_codes by @​sl0thentr0py in #​3103

New Features ✨
  • (metrics) Attribute integration-emitted metrics by @​sentry-junior in #​3071
  • The SDK now wraps user callbacks so that they don't unintentionally break your application if they raise inside the callback. by @​sl0thentr0py in #​3077
    Callback Behavior
    before_send Return nil and drop the event
    before_send_transaction Return nil and drop the transaction
    before_send_check_in Return nil and drop the check-in
    event_processor Return nil and drop the event
    before_send_log Return nil and drop the log item
    before_send_metric Return nil and drop the metric item
    before_breadcrumb Return nil and drop the breadcrumb
    traces_sampler Fall back to traces_sample_rate
    backtrace_cleanup_callback Fall back to the original backtrace
    std_lib_logger_filter Return nil and skip the log
Bug Fixes 🐛
Logs, Metrics
Other

v7.0.0

Compare Source

Breaking Changes 🛠
  • Logs are now enabled by default and enable_logs is removed. by @​sl0thentr0py in #​3053

    Using sentry-rails will automatically turn on automatic structured logging from Rails. if you want to turn it off, use:

    Sentry.init do |config
      # ...
      config.rails.structured_logging.enabled = false
    end
    
  • Metrics are now enabled by default and enable_metrics is removed. by @​sl0thentr0py in #​3061

  • config.otlp.setup_otlp_traces_exporter and config.otlp.setup_propagator now default to false. by @​sl0thentr0py in #​3063

New Features ✨
Data Collection

We are moving away from send_default_pii to a more granular configuration called data_collection.
It allows you to precisely control the data that Sentry collects from your app.

Sentry.init do |config|
  # ...
  config.data_collection.user_info = false
  config.data_collection.http_bodies = []
end

send_default_pii is deprecated but will continue to default to false.
data_collection will be backfilled when send_default_pii = false with the following values in 7.0.0:

data_collection.user_info = false
data_collection.cookies.mode = :off
data_collection.http_headers.request.mode = :deny_list
data_collection.http_headers.request.terms = %w[forwarded -ip _ip remote via _user -user]
data_collection.http_headers.response.mode = :deny_list
data_collection.http_headers.response.terms = %w[forwarded -ip _ip remote via _user -user]
data_collection.http_bodies = []
data_collection.url_query_params.mode = :off
data_collection.graphql.document = false
data_collection.graphql.variables = false
data_collection.database_query_data = false
data_collection.queues = false
data_collection.frame_context_lines = 3

In 8.0.0, send_default_pii will be 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.

v6.7.0

Compare Source

New Features ✨
Bug Fixes 🐛
Rails
Other
Internal Changes 🔧

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Adoption](https://docs.renovatebot.com/merge-confidence/) | [Passing](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---|---|---| | [sentry-rails](https://github.com/getsentry/sentry-ruby/tree/7.1.0/sentry-rails) ([source](https://github.com/getsentry/sentry-ruby/tree/HEAD/sentry-rails), [changelog](https://github.com/getsentry/sentry-ruby/blob/7.1.0/CHANGELOG.md)) | `6.6.2` → `7.1.0` | ![age](https://developer.mend.io/api/mc/badges/age/rubygems/sentry-rails/7.1.0?slim=true) | ![adoption](https://developer.mend.io/api/mc/badges/adoption/rubygems/sentry-rails/7.1.0?slim=true) | ![passing](https://developer.mend.io/api/mc/badges/compatibility/rubygems/sentry-rails/6.6.2/7.1.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/rubygems/sentry-rails/6.6.2/7.1.0?slim=true) | | [sentry-ruby](https://github.com/getsentry/sentry-ruby/tree/7.1.0/sentry-ruby) ([source](https://github.com/getsentry/sentry-ruby/tree/HEAD/sentry-ruby), [changelog](https://github.com/getsentry/sentry-ruby/blob/7.1.0/CHANGELOG.md)) | `6.6.2` → `7.1.0` | ![age](https://developer.mend.io/api/mc/badges/age/rubygems/sentry-ruby/7.1.0?slim=true) | ![adoption](https://developer.mend.io/api/mc/badges/adoption/rubygems/sentry-ruby/7.1.0?slim=true) | ![passing](https://developer.mend.io/api/mc/badges/compatibility/rubygems/sentry-ruby/6.6.2/7.1.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/rubygems/sentry-ruby/6.6.2/7.1.0?slim=true) | --- ### Release Notes <details> <summary>getsentry/sentry-ruby (sentry-rails)</summary> ### [`v7.1.0`](https://github.com/getsentry/sentry-ruby/releases/tag/7.1.0) [Compare Source](https://github.com/getsentry/sentry-ruby/compare/7.0.0...7.1.0) ##### Breaking Changes 🛠 - Disable Rails Structured Logging by default. by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;3102](https://github.com/getsentry/sentry-ruby/pull/3102) Since `enable_logs` was removed in [7.0.0](https://github.com/getsentry/sentry-ruby/releases/tag/7.0.0) and the community did not like the automatic enabling of Rails Structured Logging, we are disabling it in this minor.\ We apologize for the confusion caused. If you want to turn it on, please use: ```ruby Sentry.init do |config| # ... config.rails.structured_logging.enabled = true end ``` - fix!(tracing): Remove 302/303 from default `trace_ignore_status_codes` by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;3103](https://github.com/getsentry/sentry-ruby/pull/3103) ##### New Features ✨ - (metrics) Attribute integration-emitted metrics by [@&#8203;sentry-junior](https://github.com/sentry-junior) in [#&#8203;3071](https://github.com/getsentry/sentry-ruby/pull/3071) - The SDK now wraps user callbacks so that they don't unintentionally break your application if they raise inside the callback. by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;3077](https://github.com/getsentry/sentry-ruby/pull/3077) | Callback | Behavior | | ---------------------------- | ------------------------------------- | | `before_send` | Return `nil` and drop the event | | `before_send_transaction` | Return `nil` and drop the transaction | | `before_send_check_in` | Return `nil` and drop the check-in | | `event_processor` | Return `nil` and drop the event | | `before_send_log` | Return `nil` and drop the log item | | `before_send_metric` | Return `nil` and drop the metric item | | `before_breadcrumb` | Return `nil` and drop the breadcrumb | | `traces_sampler` | Fall back to `traces_sample_rate` | | `backtrace_cleanup_callback` | Fall back to the original backtrace | | `std_lib_logger_filter` | Return `nil` and skip the log | ##### Bug Fixes 🐛 ##### Logs, Metrics - Make ThreadedPeriodicWorker and TelemetryEventBuffer fork friendly by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;3097](https://github.com/getsentry/sentry-ruby/pull/3097) - Reduce mutex surface area for TelemetryEventBuffer by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;3083](https://github.com/getsentry/sentry-ruby/pull/3083) - Kill telemetry buffer threads on close by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;3094](https://github.com/getsentry/sentry-ruby/pull/3094) - Ensure TelemetryBuffer uses own thread for both size based and periodic flushing by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;3084](https://github.com/getsentry/sentry-ruby/pull/3084) ##### Other - (faraday) Don't double instrument builder by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;3082](https://github.com/getsentry/sentry-ruby/pull/3082) - (rails) Read query params safely in around\_action by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;3106](https://github.com/getsentry/sentry-ruby/pull/3106) ### [`v7.0.0`](https://github.com/getsentry/sentry-ruby/releases/tag/7.0.0) [Compare Source](https://github.com/getsentry/sentry-ruby/compare/6.7.0...7.0.0) ##### Breaking Changes 🛠 - [Logs](https://docs.sentry.io/product/logs/) are now enabled by default and `enable_logs` is removed. by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;3053](https://github.com/getsentry/sentry-ruby/pull/3053) Using `sentry-rails` will automatically turn on automatic structured logging from Rails. if you want to turn it off, use: ```ruby Sentry.init do |config # ... config.rails.structured_logging.enabled = false end ``` - [Metrics](https://docs.sentry.io/product/metrics/) are now enabled by default and `enable_metrics` is removed. by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;3061](https://github.com/getsentry/sentry-ruby/pull/3061) - `config.otlp.setup_otlp_traces_exporter` and `config.otlp.setup_propagator` now default to false. by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;3063](https://github.com/getsentry/sentry-ruby/pull/3063) ##### New Features ✨ ##### Data Collection 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).\ It allows you to precisely control the data that Sentry collects from your app. ```ruby Sentry.init do |config| # ... config.data_collection.user_info = false config.data_collection.http_bodies = [] end ``` `send_default_pii` is deprecated but will continue to default to `false`.\ `data_collection` will be backfilled when `send_default_pii = false` with the following values in 7.0.0: ```ruby data_collection.user_info = false data_collection.cookies.mode = :off data_collection.http_headers.request.mode = :deny_list data_collection.http_headers.request.terms = %w[forwarded -ip _ip remote via _user -user] data_collection.http_headers.response.mode = :deny_list data_collection.http_headers.response.terms = %w[forwarded -ip _ip remote via _user -user] data_collection.http_bodies = [] data_collection.url_query_params.mode = :off data_collection.graphql.document = false data_collection.graphql.variables = false data_collection.database_query_data = false data_collection.queues = false data_collection.frame_context_lines = 3 ``` In 8.0.0, `send_default_pii` will be 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. - Make rails breadcrumbs respect data collection by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;3068](https://github.com/getsentry/sentry-ruby/pull/3068) - Change stack\_frame\_variables to KeyValueCollection by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;3066](https://github.com/getsentry/sentry-ruby/pull/3066) - Allow booleans as shorthand for KeyValueCollection fields by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;3065](https://github.com/getsentry/sentry-ruby/pull/3065) - Gate ActiveJob arguments and ExecutionContext inclusion by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;3064](https://github.com/getsentry/sentry-ruby/pull/3064) - Port Rails log subscriber by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;3034](https://github.com/getsentry/sentry-ruby/pull/3034) - Port Rails controller and ActiveStorage by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;3033](https://github.com/getsentry/sentry-ruby/pull/3033) - Port redis, net:http, faraday and excon by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;3032](https://github.com/getsentry/sentry-ruby/pull/3032) - Request data collection by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;3030](https://github.com/getsentry/sentry-ruby/pull/3030) - User data collection by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;3028](https://github.com/getsentry/sentry-ruby/pull/3028) - Add sensitive key-value collection filter by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;3025](https://github.com/getsentry/sentry-ruby/pull/3025) - Add base DataCollection configuration with defaults and backfill by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;3022](https://github.com/getsentry/sentry-ruby/pull/3022) ### [`v6.7.0`](https://github.com/getsentry/sentry-ruby/releases/tag/6.7.0) [Compare Source](https://github.com/getsentry/sentry-ruby/compare/6.6.2...6.7.0) ##### New Features ✨ - (active\_job) Support for tracing by [@&#8203;solnic](https://github.com/solnic) in [#&#8203;2947](https://github.com/getsentry/sentry-ruby/pull/2947) - (active\_job) Support for Solid Queue by [@&#8203;solnic](https://github.com/solnic) in [#&#8203;2942](https://github.com/getsentry/sentry-ruby/pull/2942) - (client-reports) Record `log_byte` and `trace_metric_byte` outcomes by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;2997](https://github.com/getsentry/sentry-ruby/pull/2997) - Add Fiber support new `config.hub_isolation_level` which can be set to `:fiber` or `:thread`. Use this in case you use Fiber based servers like [Falcon](https://github.com/socketry/falcon) by [@&#8203;SeanLF](https://github.com/SeanLF) in [#&#8203;3018](https://github.com/getsentry/sentry-ruby/pull/3018) - New `set_attribute` api by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;2998](https://github.com/getsentry/sentry-ruby/pull/2998) ##### Bug Fixes 🐛 ##### Rails - Guard execution context with `send_default_pii` by [@&#8203;solnic](https://github.com/solnic) in [#&#8203;3043](https://github.com/getsentry/sentry-ruby/pull/3043) - Ensure `Rails.error.set_context` is not lost by [@&#8203;solnic](https://github.com/solnic) in [#&#8203;3024](https://github.com/getsentry/sentry-ruby/pull/3024) ##### Other - (test) Kill threaded global workers before clearing Sentry globals by [@&#8203;solnic](https://github.com/solnic) in [#&#8203;2990](https://github.com/getsentry/sentry-ruby/pull/2990) - Isolate inherited hubs under `hub_isolation_level = :fiber` by [@&#8203;SeanLF](https://github.com/SeanLF) in [#&#8203;3036](https://github.com/getsentry/sentry-ruby/pull/3036) ##### Internal Changes 🔧 - Use generated gemfiles in test workflows by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;2971](https://github.com/getsentry/sentry-ruby/pull/2971) - Weekly lockfile generation CI job by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;2966](https://github.com/getsentry/sentry-ruby/pull/2966) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNjAuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjEwOS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Update sentry-ruby monorepo to v7
All checks were successful
ci/woodpecker/push/test Pipeline was successful
3386e4fdf8
renovate force-pushed renovate/major-sentry-ruby-monorepo from 3386e4fdf8
All checks were successful
ci/woodpecker/push/test Pipeline was successful
to 8cd060ba89
All checks were successful
ci/woodpecker/push/test Pipeline was successful
2026-09-29 12:33:00 +00:00
Compare
All checks were successful
ci/woodpecker/push/test Pipeline was successful
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/major-sentry-ruby-monorepo:renovate/major-sentry-ruby-monorepo
git switch renovate/major-sentry-ruby-monorepo

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff renovate/major-sentry-ruby-monorepo
git switch renovate/major-sentry-ruby-monorepo
git rebase main
git switch main
git merge --ff-only renovate/major-sentry-ruby-monorepo
git switch renovate/major-sentry-ruby-monorepo
git rebase main
git switch main
git merge --no-ff renovate/major-sentry-ruby-monorepo
git switch main
git merge --squash renovate/major-sentry-ruby-monorepo
git switch main
git merge --ff-only renovate/major-sentry-ruby-monorepo
git switch main
git merge renovate/major-sentry-ruby-monorepo
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
casper/bsky_handle_provider!67
No description provided.