Skip to content

Update sentry-ruby monorepo to v5.28.1#11064

Merged
nbudin merged 1 commit intomainfrom
renovate/sentry-ruby-monorepo
Nov 10, 2025
Merged

Update sentry-ruby monorepo to v5.28.1#11064
nbudin merged 1 commit intomainfrom
renovate/sentry-ruby-monorepo

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Nov 10, 2025

This PR contains the following updates:

Package Change Age Confidence
sentry-rails (source, changelog) 5.26.0 -> 5.28.1 age confidence
sentry-ruby (source, changelog) 5.26.0 -> 5.28.1 age confidence

Release Notes

getsentry/sentry-ruby (sentry-rails)

v5.28.1

Compare Source

Bug Fixes
  • The sentry.origin log event attribute is now correctly prefixed with auto.log (#​2749)

v5.28.0

Compare Source

Features
  • Auto-enable Rails structured logging when enable_logs is true (#​2721)
Miscellaneous

...

  config.metrics.enabled = true
  config.metrics.enable_code_locations = true
  config.metrics.before_emit = lambda {}
end

Sentry::Metrics.increment('button_click')
Sentry::Metrics.distribution('page_load', 15.0, unit: 'millisecond')
Sentry::Metrics.gauge('page_load', 15.0, unit: 'millisecond')
Sentry::Metrics.set('user_view', 'jane')
Sentry::Metrics.timing('how_long') { sleep(1) }
```
Internal
  • Fix leftover config.logger call in graphql patch (#​2722
  • Add Configuration.before and Configuration.after to run hooks before and after given event (#​2724)

v5.27.1

Compare Source

Features
  • Support for :origin attribute in log events (#​2712)
Bug Fixes
  • Skip including sentry.message.template in the log event attributes if there are no interpolation parameters provided (#​2700)
  • Respect log_level when logging via :std_lib_logger patch (#​2709)
  • Add sentry.origin attribute to log events (#​2712)

v5.27.0

Compare Source

Feature
  • Propagated sampling rates as specified in Traces docs (#​2671)

  • Support for Rails ActiveSupport log subscribers (#​2690)

  • Support for defining custom Rails log subscribers that work with Sentry Structured Logging (#​2689)

    Rails applications can now define custom log subscribers that integrate with Sentry's structured logging system. The feature includes built-in subscribers for ActionController, ActiveRecord, ActiveJob, and ActionMailer events, with automatic parameter filtering that respects Rails' config.filter_parameters configuration.

    To enable structured logging with Rails log subscribers:

    Sentry.init do |config|

... your setup ...

Make sure structured logging is enabled

config.enable_logs = true

Enable default Rails log subscribers (ActionController and ActiveRecord)

config.rails.structured_logging.enabled = true

end


To configure all subscribers:

```ruby
Sentry.init do |config|

### ... your setup ...
### Make sure structured logging is enabled
  config.enable_logs = true

### Enable Rails log subscribers
  config.rails.structured_logging.enabled = true

### Add ActionMailer and ActiveJob subscribers
  config.rails.structured_logging.subscribers.update(
    action_mailer: Sentry::Rails::LogSubscribers::ActionMailerSubscriber,
    active_job: Sentry::Rails::LogSubscribers::ActiveJobSubscriber
  )
end

You can also define custom log subscribers by extending the base class:

class MyCustomSubscriber < Sentry::Rails::LogSubscriber
  attach_to :my_component

  def my_event(event)
    log_structured_event(
      message: "Custom event occurred",
      level: :info,
      attributes: { duration_ms: event.duration }
    )
  end
end

Sentry.init do |config|

### ... your setup ...
### Make sure structured logging is enabled
  config.enable_logs = true

### Enable Rails log subscribers
  config.rails.structured_logging.enabled = true

### Add custom subscriber
  config.rails.structured_logging.subscribers[:my_component] = MyCustomSubscriber
end
  • Introduce structured_logging config namespace (#​2692)
Bug Fixes
  • Silence _perform method redefinition warning (#​2682)
  • Update sentry trace regexp (#​2678)
  • Remove redundant attr_reader (#​2673)
Internal
  • Factor out do_request in HTTP transport (#​2662)
  • Add Sentry::DebugTransport that captures events and stores them as JSON for debugging purposes (#​2664)
  • Add Sentry::DebugStructuredLogger that caputres log events and stores them as JSON to a file for debugging purposes (#​2693)
  • Rails test runner (#​2687)
  • Update common gem deps for development (#​2688)
  • Make devcontainer work with ancient Ruby/Rails (#​2679)
  • Improved devcontainer setup with e2e test mini infra (#​2672)
  • Address various flaky specs

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, 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 was generated by Mend Renovate. View the repository job log.

@github-actions
Copy link
Copy Markdown
Contributor

Code Coverage Report: Only Changed Files listed

Package Coverage
Overall Coverage 🟢 30.8%

Minimum allowed coverage is 0%, this run produced 30.8%

@nbudin nbudin merged commit 9706440 into main Nov 10, 2025
16 checks passed
@nbudin nbudin deleted the renovate/sentry-ruby-monorepo branch November 10, 2025 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant