Skip to content

Update sentry-rails 5.23.0 → 5.24.0 (minor)#1776

Merged
danidoni merged 1 commit into
masterfrom
depfu/update/group/sentry-ruby-core-5.24.0
Jun 19, 2025
Merged

Update sentry-rails 5.23.0 → 5.24.0 (minor)#1776
danidoni merged 1 commit into
masterfrom
depfu/update/group/sentry-ruby-core-5.24.0

Conversation

@depfu

@depfu depfu Bot commented May 22, 2025

Copy link
Copy Markdown
Contributor

Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ sentry-rails (5.23.0 → 5.24.0) · Repo · Changelog

Release Notes

5.24.0

Features

  • Add new sidekiq config report_only_dead_jobs (#2581)

  • Add max_nesting of 10 to breadcrumbs data serialization (#2583)

  • Add sidekiq config propagate_traces to control trace header injection (#2588)

    If you use schedulers you can get one large trace with all your jobs which is undesirable.
    We recommend using the following to propagate traces only from the Rails server and not elsewhere.

    config.sidekiq.propagate_traces = false unless Rails.const_defined?('Server')
  • Only expose active_storage keys on span data if send_default_pii is on (#2589)

  • Add new Sentry.logger for Structured Logging feature (#2620).

    To enable structured logging you need to turn on the enable_logs configuration option:

    Sentry.init do |config|
      # ... your setup ...
      config.enable_logs = true
    end

    Once you configured structured logging, you get access to a new Sentry.logger object that can be
    used as a regular logger with additional structured data support:

    Sentry.logger.info("User logged in", user_id: 123)
    

    Sentry.logger.error("Failed to process payment",
    transaction_id: "tx_123",
    error_code: "PAYMENT_FAILED"
    )

    You can also use message templates with positional or hash parameters:

    Sentry.logger.info("User %{name} logged in", name: "Jane Doe")
    

    Sentry.logger.info("User %s logged in", ["Jane Doe"])

    Any other arbitrary attributes will be sent as part of the log event payload:

    # Here `user_id` and `action` will be sent as extra attributes that Sentry Logs UI displays
    Sentry.logger.info("User %{user} logged in", user: "Jane", user_id: 123, action: "create")

    ⚠️ When enable_logs is true, previous Sentry.logger should no longer be used for internal SDK
    logging - it was replaced by Sentry.configuration.sdk_logger and should be used only by the SDK
    itself and its extensions.

  • New configuration option called active_job_report_on_retry_error which enables reporting errors on each retry error (#2617)

Bug Fixes

  • Gracefully fail on malformed utf-8 breadcrumb message (#2582)
  • Fix breadcrumb serialization error message to be an object (#2584)
  • Fix compatibility issues with sidekiq-cron 2.2.0 (#2591)
  • Update sentry-sidekiq to work correctly with Sidekiq 8.0 and its new timestamp format (#2570)
  • Ensure we capture exceptions after each job retry (#2597)

Internal

  • Remove user_segment from DSC (#2586)
  • Replace logger with sdk_logger (#2621)
  • Sentry.logger is now deprecated when enable_logs is turned off. It's original behavior was ported to Sentry.configuration.sdk_logger. Please notice that this logger is internal and should only be used for SDK-specific logging needs. (#2621)

Does any of this look wrong? Please let us know.

✳️ sentry-ruby (5.23.0 → 5.24.0) · Repo · Changelog

Release Notes

5.24.0

Features

  • Add new sidekiq config report_only_dead_jobs (#2581)

  • Add max_nesting of 10 to breadcrumbs data serialization (#2583)

  • Add sidekiq config propagate_traces to control trace header injection (#2588)

    If you use schedulers you can get one large trace with all your jobs which is undesirable.
    We recommend using the following to propagate traces only from the Rails server and not elsewhere.

    config.sidekiq.propagate_traces = false unless Rails.const_defined?('Server')
  • Only expose active_storage keys on span data if send_default_pii is on (#2589)

  • Add new Sentry.logger for Structured Logging feature (#2620).

    To enable structured logging you need to turn on the enable_logs configuration option:

    Sentry.init do |config|
      # ... your setup ...
      config.enable_logs = true
    end

    Once you configured structured logging, you get access to a new Sentry.logger object that can be
    used as a regular logger with additional structured data support:

    Sentry.logger.info("User logged in", user_id: 123)
    

    Sentry.logger.error("Failed to process payment",
    transaction_id: "tx_123",
    error_code: "PAYMENT_FAILED"
    )

    You can also use message templates with positional or hash parameters:

    Sentry.logger.info("User %{name} logged in", name: "Jane Doe")
    

    Sentry.logger.info("User %s logged in", ["Jane Doe"])

    Any other arbitrary attributes will be sent as part of the log event payload:

    # Here `user_id` and `action` will be sent as extra attributes that Sentry Logs UI displays
    Sentry.logger.info("User %{user} logged in", user: "Jane", user_id: 123, action: "create")

    ⚠️ When enable_logs is true, previous Sentry.logger should no longer be used for internal SDK
    logging - it was replaced by Sentry.configuration.sdk_logger and should be used only by the SDK
    itself and its extensions.

  • New configuration option called active_job_report_on_retry_error which enables reporting errors on each retry error (#2617)

Bug Fixes

  • Gracefully fail on malformed utf-8 breadcrumb message (#2582)
  • Fix breadcrumb serialization error message to be an object (#2584)
  • Fix compatibility issues with sidekiq-cron 2.2.0 (#2591)
  • Update sentry-sidekiq to work correctly with Sidekiq 8.0 and its new timestamp format (#2570)
  • Ensure we capture exceptions after each job retry (#2597)

Internal

  • Remove user_segment from DSC (#2586)
  • Replace logger with sdk_logger (#2621)
  • Sentry.logger is now deprecated when enable_logs is turned off. It's original behavior was ported to Sentry.configuration.sdk_logger. Please notice that this logger is internal and should only be used for SDK-specific logging needs. (#2621)

Does any of this look wrong? Please let us know.

↗️ concurrent-ruby (indirect, 1.3.4 → 1.3.5) · Repo · Changelog

Release Notes

1.3.5

What's Changed

New Contributors

Full Changelog: v1.3.4...v1.3.5

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 6 commits:

↗️ loofah (indirect, 2.24.0 → 2.24.1) · Repo · Changelog

Release Notes

2.24.1

2.24.1 / 2025-05-12

Ruby support

  • Import only what's needed from cgi for support for Ruby 3.5 #296 @Earlopain

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 5 commits:

↗️ mini_portile2 (indirect, 2.8.8 → 2.8.9) · Repo · Changelog

Release Notes

2.8.9

2.8.9 / 2025-05-12

Ruby support

  • Import only what's needed from cgi, for supporting Ruby 3.5. #160 @Earlopain

New Contributors

Full Changelog: v2.8.8...v2.8.9

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 13 commits:

↗️ minitest (indirect, 5.25.4 → 5.25.5) · Repo · Changelog

Release Notes

5.25.5 (from changelog)

  • 4 bug fixes:

    • Bumped minimum ruby to 2.7.

    • Fixed expectation docs for must/wont_pattern_match. (jaredcwhite)

    • Reorder Minitest::Test.ancestors to allow reaching Minitest::Assertions#skipped? (Edouard-chin)

    • Update the ruby and rails compatibility tables. (bquorning)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 7 commits:

↗️ rack (indirect, 2.2.14 → 2.2.16) · Repo · Changelog

Release Notes

2.2.15 (from changelog)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 6 commits:

↗️ rails-dom-testing (indirect, 2.2.0 → 2.3.0) · Repo · Changelog

Release Notes

2.3.0

What's Changed

  • Add assert_not_dom, refute_dom, assert_not_select, refute_select & refute_dom_equal by @joshuay03 in #113
  • Raise an error when given a block with a 0 element assertion by @joshuay03 in #116
  • Raise an error when provided an invalid Range, or invalid :minimum and :maximum by @joshuay03 in #115
  • assert_dom :text collapses whitespace by @jyeharry in #123

New Contributors

Full Changelog: v2.2.0...v2.3.0

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 29 commits:

↗️ zeitwerk (indirect, 2.7.1 → 2.7.3) · Repo · Changelog

Release Notes

2.7.3 (from changelog)

  • The helper Zeitwerk::Loader#cpath_expected_at did not work correctly if the inflector had logic that relied on the absolute path of the given file or directory. This has been fixed.

    This bug was found by Codex.

  • Perpetual internal work.

2.7.2 (from changelog)

  • Internal improvements and micro-optimizations.

  • Add stable TruffleRuby to CI.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 46 commits:


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu Bot added the depfu label May 22, 2025
@danidoni danidoni force-pushed the depfu/update/group/sentry-ruby-core-5.24.0 branch from d29d245 to 2d3f11f Compare June 3, 2025 14:38
@danidoni danidoni force-pushed the depfu/update/group/sentry-ruby-core-5.24.0 branch 2 times, most recently from 17b129f to 18e4fd8 Compare June 19, 2025 08:30
@danidoni danidoni force-pushed the depfu/update/group/sentry-ruby-core-5.24.0 branch from 18e4fd8 to 1ab0f11 Compare June 19, 2025 08:33
@danidoni danidoni merged commit 382f8f7 into master Jun 19, 2025
2 checks passed
@depfu depfu Bot deleted the depfu/update/group/sentry-ruby-core-5.24.0 branch June 19, 2025 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant