Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump sentry-ruby from 5.22.1 to 5.22.4 #722

Merged
merged 1 commit into from
Feb 9, 2025

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 7, 2025

Bumps sentry-ruby from 5.22.1 to 5.22.4.

Changelog

Sourced from sentry-ruby's changelog.

5.22.4

Bug Fixes

  • Fix handling of cron with tz in Cron::Job (#2530)
  • Revert "[rails] support string errors in error reporter (#2464)" (#2533)
  • Removed unnecessary warning about missing stackprof when Vernier is configured as the profiler (#2537)
  • Fix regression with CheckInEvent in before_send (#2541)

Internal

  • Introduced Configuration#validate to validate configuration in Sentry.init block (#2538)
  • Introduced Sentry.dependency_installed? to check if a 3rd party dependency is available ie Sentry.dependency_installed?(:Vernier) (#2542)

5.22.3

Bug Fixes

  • Accept Hash in before_send* callbacks again (#2529)

5.22.2

Features

  • Improve the accuracy of duration calculations in cron jobs monitoring (#2471)
  • Use attempt_threshold to skip reporting on first N attempts (#2503)
  • Support code.namespace for Ruby 3.4+ stacktraces (#2506)

Bug Fixes

  • Default to internal_error error type for OpenTelemetry spans #2473
  • Improve before_send and before_send_transaction's return value handling (#2504)
  • Fix a crash when calling Sentry.get_main_hub in a trap context (#2510)
  • Use URI::RFC2396_PARSER.escape explicitly to remove warning logs to stderr (#2509)

Internal

  • Test Ruby 3.4 in CI (#2506)
  • Upgrade actions workflows versions (#2506)
  • Stop relying on fugit (#2519)
Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies ruby Pull requests that update Ruby code labels Feb 7, 2025
Copy link

github-actions bot commented Feb 7, 2025

gem compare concurrent-ruby 1.3.4 1.3.5

Compared versions: ["1.3.4", "1.3.5"]
  DIFFERENT date:
    1.3.4: 2024-08-10 00:00:00 UTC
    1.3.5: 2025-01-15 00:00:00 UTC
  DIFFERENT version:
    1.3.4: 1.3.4
    1.3.5: 1.3.5
  DIFFERENT files:
    1.3.4->1.3.5:
      * Changed:
            CHANGELOG.md +12/-2
            README.md +1/-1
            Rakefile +2/-0
            ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/ConcurrentHashMapV8.java +1/-1
            ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/nounsafe/ConcurrentHashMapV8.java +1/-1
            lib/concurrent-ruby/concurrent/agent.rb +2/-2
            lib/concurrent-ruby/concurrent/async.rb +1/-1
            lib/concurrent-ruby/concurrent/atom.rb +1/-1
            lib/concurrent-ruby/concurrent/concern/logging.rb +17/-12
            lib/concurrent-ruby/concurrent/delay.rb +1/-1
            lib/concurrent-ruby/concurrent/executor/fixed_thread_pool.rb +1/-1
            lib/concurrent-ruby/concurrent/executor/single_thread_executor.rb +1/-1
            lib/concurrent-ruby/concurrent/map.rb +1/-1
            lib/concurrent-ruby/concurrent/promise.rb +1/-1
            lib/concurrent-ruby/concurrent/scheduled_task.rb +1/-1
            lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb +1/-1
            lib/concurrent-ruby/concurrent/synchronization/object.rb +1/-1
            lib/concurrent-ruby/concurrent/thread_safe/util/adder.rb +1/-1
            lib/concurrent-ruby/concurrent/thread_safe/util/xor_shift_random.rb +1/-1
            lib/concurrent-ruby/concurrent/version.rb +1/-1
  DIFFERENT extra_rdoc_files:
    1.3.4->1.3.5:
      * Changed:
            README.md +1/-1
            CHANGELOG.md +12/-2

Copy link

github-actions bot commented Feb 7, 2025

gem compare --diff concurrent-ruby 1.3.4 1.3.5

Compared versions: ["1.3.4", "1.3.5"]
  DIFFERENT files:
    1.3.4->1.3.5:
      * Changed:
        CHANGELOG.md
                --- /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.4/CHANGELOG.md	2025-02-07 03:36:10.182788506 +0000
                +++ /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.5/CHANGELOG.md	2025-02-07 03:36:10.205788387 +0000
                @@ -2,0 +3,10 @@
                +## Release v1.3.5, edge v0.7.2 (15 January 2025)
                +
                +concurrent-ruby:
                +
                +* (#1062) Remove dependency on logger.
                +
                +concurrent-ruby-edge:
                +
                +* (#1062) Remove dependency on logger.
                +
                @@ -299 +309 @@
                -  - No longers supports executor injection
                +  - No longer supports executor injection
                @@ -474 +484 @@
                -* Removed confusing warning when not using native extenstions
                +* Removed confusing warning when not using native extensions
        README.md
                --- /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.4/README.md	2025-02-07 03:36:10.182788506 +0000
                +++ /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.5/README.md	2025-02-07 03:36:10.206788382 +0000
                @@ -287 +287 @@
                -If the library does not behave as expected, `Concurrent.use_stdlib_logger(Logger::DEBUG)` could 
                +If the library does not behave as expected, `Concurrent.use_simple_logger(:DEBUG)` could
        Rakefile
                --- /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.4/Rakefile	2025-02-07 03:36:10.183788501 +0000
                +++ /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.5/Rakefile	2025-02-07 03:36:10.206788382 +0000
                @@ -14,0 +15,2 @@
                +  ext.source_version = '8'
                +  ext.target_version = '8'
        ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/ConcurrentHashMapV8.java
                --- /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.4/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/ConcurrentHashMapV8.java	2025-02-07 03:36:10.185788491 +0000
                +++ /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.5/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/ConcurrentHashMapV8.java	2025-02-07 03:36:10.208788372 +0000
                @@ -484 +484 @@
                -     * leave untouched but unused constructor arguments refering to
                +     * leave untouched but unused constructor arguments referring to
        ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/nounsafe/ConcurrentHashMapV8.java
                --- /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.4/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/nounsafe/ConcurrentHashMapV8.java	2025-02-07 03:36:10.186788486 +0000
                +++ /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.5/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/nounsafe/ConcurrentHashMapV8.java	2025-02-07 03:36:10.209788367 +0000
                @@ -487 +487 @@
                -     * leave untouched but unused constructor arguments refering to
                +     * leave untouched but unused constructor arguments referring to
        lib/concurrent-ruby/concurrent/agent.rb
                --- /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/agent.rb	2025-02-07 03:36:10.188788475 +0000
                +++ /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.5/lib/concurrent-ruby/concurrent/agent.rb	2025-02-07 03:36:10.211788356 +0000
                @@ -374 +374 @@
                -    # @raise [Concurrent::TimeoutError] when timout is reached
                +    # @raise [Concurrent::TimeoutError] when timeout is reached
                @@ -480 +480 @@
                -      # @raise [Concurrent::TimeoutError] when timout is reached
                +      # @raise [Concurrent::TimeoutError] when timeout is reached
        lib/concurrent-ruby/concurrent/async.rb
                --- /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/async.rb	2025-02-07 03:36:10.188788475 +0000
                +++ /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.5/lib/concurrent-ruby/concurrent/async.rb	2025-02-07 03:36:10.211788356 +0000
                @@ -221 +221 @@
                -    #   Instanciate a new object and ensure proper initialization of the
                +    #   Instantiate a new object and ensure proper initialization of the
        lib/concurrent-ruby/concurrent/atom.rb
                --- /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/atom.rb	2025-02-07 03:36:10.188788475 +0000
                +++ /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.5/lib/concurrent-ruby/concurrent/atom.rb	2025-02-07 03:36:10.211788356 +0000
                @@ -116 +116 @@
                -    #   is acceptable else return false (preferrably) or raise an exception.
                +    #   is acceptable else return false (preferably) or raise an exception.
        lib/concurrent-ruby/concurrent/concern/logging.rb
                --- /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/concern/logging.rb	2025-02-07 03:36:10.193788449 +0000
                +++ /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.5/lib/concurrent-ruby/concurrent/concern/logging.rb	2025-02-07 03:36:10.216788330 +0000
                @@ -1 +0,0 @@
                -require 'logger'
                @@ -11 +10,3 @@
                -      include Logger::Severity
                +      # The same as Logger::Severity but we copy it here to avoid a dependency on the logger gem just for these 7 constants
                +      DEBUG, INFO, WARN, ERROR, FATAL, UNKNOWN = 0, 1, 2, 3, 4, 5
                +      SEV_LABEL = %w[DEBUG INFO WARN ERROR FATAL ANY].freeze
                @@ -14 +15 @@
                -      # @param [Integer] level one of Logger::Severity constants
                +      # @param [Integer] level one of Concurrent::Concern::Logging constants
                @@ -26 +27 @@
                -        $stderr.puts "`Concurrent.configuration.logger` failed to log #{[level, progname, message, block]}\n" +
                +        $stderr.puts "`Concurrent.global_logger` failed to log #{[level, progname, message, block]}\n" +
                @@ -36,2 +37,4 @@
                -  # @return [Logger] Logger with provided level and output.
                -  def self.create_simple_logger(level = Logger::FATAL, output = $stderr)
                +  # Create a simple logger with provided level and output.
                +  def self.create_simple_logger(level = :FATAL, output = $stderr)
                +    level = Concern::Logging.const_get(level) unless level.is_a?(Integer)
                +
                @@ -55 +58 @@
                -                          Logger::SEV_LABEL[severity],
                +                          Concern::Logging::SEV_LABEL[severity],
                @@ -63 +66 @@
                -  def self.use_simple_logger(level = Logger::FATAL, output = $stderr)
                +  def self.use_simple_logger(level = :FATAL, output = $stderr)
                @@ -67 +70,2 @@
                -  # @return [Logger] Logger with provided level and output.
                +  # Create a stdlib logger with provided level and output.
                +  # If you use this deprecated method you might need to add logger to your Gemfile to avoid warnings from Ruby 3.3.5+.
                @@ -69 +73,2 @@
                -  def self.create_stdlib_logger(level = Logger::FATAL, output = $stderr)
                +  def self.create_stdlib_logger(level = :FATAL, output = $stderr)
                +    require 'logger'
                @@ -96 +101 @@
                -  def self.use_stdlib_logger(level = Logger::FATAL, output = $stderr)
                +  def self.use_stdlib_logger(level = :FATAL, output = $stderr)
                @@ -106 +111 @@
                -  GLOBAL_LOGGER = AtomicReference.new(create_simple_logger(Logger::WARN))
                +  GLOBAL_LOGGER = AtomicReference.new(create_simple_logger(:WARN))
        lib/concurrent-ruby/concurrent/concurrent_ruby.jar
                Binary files /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/concurrent_ruby.jar and /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.5/lib/concurrent-ruby/concurrent/concurrent_ruby.jar differ
        lib/concurrent-ruby/concurrent/delay.rb
                --- /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/delay.rb	2025-02-07 03:36:10.195788439 +0000
                +++ /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.5/lib/concurrent-ruby/concurrent/delay.rb	2025-02-07 03:36:10.218788320 +0000
                @@ -22 +22 @@
                -  # enclosed opration will be run and the calling thread will block. Other
                +  # enclosed operation will be run and the calling thread will block. Other
        lib/concurrent-ruby/concurrent/executor/fixed_thread_pool.rb
                --- /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/fixed_thread_pool.rb	2025-02-07 03:36:10.196788434 +0000
                +++ /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.5/lib/concurrent-ruby/concurrent/executor/fixed_thread_pool.rb	2025-02-07 03:36:10.219788315 +0000
                @@ -86 +86 @@
                -  #   this method explicitely in case your application post jobs in bursts (a
                +  #   this method explicitly in case your application post jobs in bursts (a
        lib/concurrent-ruby/concurrent/executor/single_thread_executor.rb
                --- /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/executor/single_thread_executor.rb	2025-02-07 03:36:10.198788424 +0000
                +++ /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.5/lib/concurrent-ruby/concurrent/executor/single_thread_executor.rb	2025-02-07 03:36:10.221788305 +0000
                @@ -30 +30 @@
                -  #   encapsulates all these bahaviors. The task processor is highly resilient
                +  #   encapsulates all these behaviors. The task processor is highly resilient
        lib/concurrent-ruby/concurrent/map.rb
                --- /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/map.rb	2025-02-07 03:36:10.199788418 +0000
                +++ /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.5/lib/concurrent-ruby/concurrent/map.rb	2025-02-07 03:36:10.222788299 +0000
                @@ -151 +151 @@
                -          # a key => value mapping might have already been created by a different thread (key?(key) would then return true, this elsif branch wouldn't be taken and an incorrent +nil+ value
                +          # a key => value mapping might have already been created by a different thread (key?(key) would then return true, this elsif branch wouldn't be taken and an incorrect +nil+ value
        lib/concurrent-ruby/concurrent/promise.rb
                --- /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/promise.rb	2025-02-07 03:36:10.200788413 +0000
                +++ /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.5/lib/concurrent-ruby/concurrent/promise.rb	2025-02-07 03:36:10.223788294 +0000
                @@ -106 +106 @@
                -  # child Promise finishes intialization it may be in a different state than its
                +  # child Promise finishes initialization it may be in a different state than its
        lib/concurrent-ruby/concurrent/scheduled_task.rb
                --- /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/scheduled_task.rb	2025-02-07 03:36:10.200788413 +0000
                +++ /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.5/lib/concurrent-ruby/concurrent/scheduled_task.rb	2025-02-07 03:36:10.224788289 +0000
                @@ -196 +196 @@
                -    # The `delay` value given at instanciation.
                +    # The `delay` value given at instantiation.
        lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb
                --- /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb	2025-02-07 03:36:10.201788408 +0000
                +++ /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.5/lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb	2025-02-07 03:36:10.224788289 +0000
                @@ -160 +160 @@
                -          clazz.send :remove_method, member if clazz.instance_methods.include? member
                +          clazz.send :remove_method, member if clazz.instance_methods(false).include? member
        lib/concurrent-ruby/concurrent/synchronization/object.rb
                --- /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/synchronization/object.rb	2025-02-07 03:36:10.202788403 +0000
                +++ /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.5/lib/concurrent-ruby/concurrent/synchronization/object.rb	2025-02-07 03:36:10.225788284 +0000
                @@ -61 +61 @@
                -      # The instance variable should be accessed oly through generated methods.
                +      # The instance variable should be accessed only through generated methods.
        lib/concurrent-ruby/concurrent/thread_safe/util/adder.rb
                --- /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/thread_safe/util/adder.rb	2025-02-07 03:36:10.203788398 +0000
                +++ /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.5/lib/concurrent-ruby/concurrent/thread_safe/util/adder.rb	2025-02-07 03:36:10.226788279 +0000
                @@ -12 +12 @@
                -      # A Ruby port of the Doug Lea's jsr166e.LondAdder class version 1.8
                +      # A Ruby port of the Doug Lea's jsr166e.LongAdder class version 1.8
        lib/concurrent-ruby/concurrent/thread_safe/util/xor_shift_random.rb
                --- /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/thread_safe/util/xor_shift_random.rb	2025-02-07 03:36:10.204788392 +0000
                +++ /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.5/lib/concurrent-ruby/concurrent/thread_safe/util/xor_shift_random.rb	2025-02-07 03:36:10.227788273 +0000
                @@ -18 +18 @@
                -      #     if (x = XorShiftRandom.xorshift).odd? # thread-localy generate a next random number
                +      #     if (x = XorShiftRandom.xorshift).odd? # thread-locally generate a next random number
        lib/concurrent-ruby/concurrent/version.rb
                --- /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.4/lib/concurrent-ruby/concurrent/version.rb	2025-02-07 03:36:10.205788387 +0000
                +++ /tmp/d20250207-2519-vyz6vv/concurrent-ruby-1.3.5/lib/concurrent-ruby/concurrent/version.rb	2025-02-07 03:36:10.228788268 +0000
                @@ -2 +2 @@
                -  VERSION = '1.3.4'
                +  VERSION = '1.3.5'

Copy link

github-actions bot commented Feb 7, 2025

gem compare sentry-ruby 5.22.1 5.22.4

Compared versions: ["5.22.1", "5.22.4"]
  DIFFERENT date:
    5.22.1: 2024-12-16 00:00:00 UTC
    5.22.4: 2025-02-06 00:00:00 UTC
  DIFFERENT homepage:
    5.22.1: https://github.com/getsentry/sentry-ruby/tree/5.22.1/sentry-ruby
    5.22.4: https://github.com/getsentry/sentry-ruby/tree/5.22.4/sentry-ruby
  DIFFERENT metadata:
    5.22.1: {"homepage_uri" => "https://github.com/getsentry/sentry-ruby/tree/5.22.1/sentry-ruby", "source_code_uri" => "https://github.com/getsentry/sentry-ruby/tree/5.22.1/sentry-ruby", "changelog_uri" => "https://github.com/getsentry/sentry-ruby/blob/5.22.1/CHANGELOG.md", "bug_tracker_uri" => "https://github.com/getsentry/sentry-ruby/issues", "documentation_uri" => "http://www.rubydoc.info/gems/sentry-ruby/5.22.1"}
    5.22.4: {"homepage_uri" => "https://github.com/getsentry/sentry-ruby/tree/5.22.4/sentry-ruby", "source_code_uri" => "https://github.com/getsentry/sentry-ruby/tree/5.22.4/sentry-ruby", "changelog_uri" => "https://github.com/getsentry/sentry-ruby/blob/5.22.4/CHANGELOG.md", "bug_tracker_uri" => "https://github.com/getsentry/sentry-ruby/issues", "documentation_uri" => "http://www.rubydoc.info/gems/sentry-ruby/5.22.4"}
  DIFFERENT rubygems_version:
    5.22.1: 3.5.22
    5.22.4: 3.6.2
  DIFFERENT version:
    5.22.1: 5.22.1
    5.22.4: 5.22.4
  DIFFERENT files:
    5.22.1->5.22.4:
      * Changed:
            Gemfile +2/-0
            README.md +1/-1
            lib/sentry-ruby.rb +9/-0
            lib/sentry/backtrace.rb +4/-3
            lib/sentry/client.rb +29/-8
            lib/sentry/configuration.rb +57/-8
            lib/sentry/cron/monitor_check_ins.rb +3/-3
            lib/sentry/metrics/timing.rb +8/-0
            lib/sentry/net/http.rb +2/-1
            lib/sentry/version.rb +1/-1
  DIFFERENT extra_rdoc_files:
    5.22.1->5.22.4:
      * Changed:
            README.md +1/-1

Copy link

github-actions bot commented Feb 7, 2025

gem compare --diff sentry-ruby 5.22.1 5.22.4

Compared versions: ["5.22.1", "5.22.4"]
  DIFFERENT files:
    5.22.1->5.22.4:
      * Changed:
        Gemfile
                --- /tmp/d20250207-3521-gtbebp/sentry-ruby-5.22.1/Gemfile	2025-02-07 03:36:32.795667795 +0000
                +++ /tmp/d20250207-3521-gtbebp/sentry-ruby-5.22.4/Gemfile	2025-02-07 03:36:32.810667719 +0000
                @@ -11,0 +12,2 @@
                +gem "ostruct" if RUBY_VERSION >= "3.4"
                +
        README.md
                --- /tmp/d20250207-3521-gtbebp/sentry-ruby-5.22.1/README.md	2025-02-07 03:36:32.796667790 +0000
                +++ /tmp/d20250207-3521-gtbebp/sentry-ruby-5.22.4/README.md	2025-02-07 03:36:32.810667719 +0000
                @@ -36 +36 @@
                -We test from Ruby 2.4 to Ruby 3.2 at the latest patchlevel/teeny version. We also support JRuby 9.0.
                +We test from Ruby 2.4 to Ruby 3.4 at the latest patchlevel/teeny version. We also support JRuby 9.0.
        lib/sentry-ruby.rb
                --- /tmp/d20250207-3521-gtbebp/sentry-ruby-5.22.1/lib/sentry-ruby.rb	2025-02-07 03:36:32.796667790 +0000
                +++ /tmp/d20250207-3521-gtbebp/sentry-ruby-5.22.4/lib/sentry-ruby.rb	2025-02-07 03:36:32.811667714 +0000
                @@ -234,0 +235 @@
                +      config.validate
                @@ -310,0 +312,3 @@
                +    rescue ThreadError
                +      # In some rare cases this may be called in a trap context so we need to handle it gracefully
                +      @main_hub
                @@ -606,0 +611,5 @@
                +    end
                +
                +    # @!visibility private
                +    def dependency_installed?(name)
                +      Object.const_defined?(name)
        lib/sentry/backtrace.rb
                --- /tmp/d20250207-3521-gtbebp/sentry-ruby-5.22.1/lib/sentry/backtrace.rb	2025-02-07 03:36:32.797667785 +0000
                +++ /tmp/d20250207-3521-gtbebp/sentry-ruby-5.22.4/lib/sentry/backtrace.rb	2025-02-07 03:36:32.811667714 +0000
                @@ -15 +15 @@
                -        (?: :in\s('|`)([^']+)')?$
                +        (?: :in\s('|`)(?:([\w:]+)\#)?([^']+)')?$
                @@ -39,0 +40 @@
                +
                @@ -41 +42 @@
                -          _, file, number, _, method = ruby_match.to_a
                +          _, file, number, _, module_name, method = ruby_match.to_a
                @@ -43 +44 @@
                -          module_name = nil
                +          module_name = module_name
        lib/sentry/client.rb
                --- /tmp/d20250207-3521-gtbebp/sentry-ruby-5.22.1/lib/sentry/client.rb	2025-02-07 03:36:32.798667780 +0000
                +++ /tmp/d20250207-3521-gtbebp/sentry-ruby-5.22.4/lib/sentry/client.rb	2025-02-07 03:36:32.812667709 +0000
                @@ -186,2 +186,13 @@
                -        if event.nil?
                -          log_debug("Discarded event because before_send returned nil")
                +        case event
                +        when ErrorEvent, CheckInEvent
                +          # do nothing
                +        when Hash
                +          log_debug(<<~MSG)
                +            Returning a Hash from before_send is deprecated and will be removed in the next major version.
                +            Please return a Sentry::ErrorEvent object instead.
                +          MSG
                +        else
                +          # Avoid serializing the event object in this case because we aren't sure what it is and what it contains
                +          log_debug(<<~MSG)
                +            Discarded event because before_send didn't return a Sentry::ErrorEvent object but an instance of #{event.class}
                +          MSG
                @@ -196,6 +207 @@
                -        if event.nil?
                -          log_debug("Discarded event because before_send_transaction returned nil")
                -          transport.record_lost_event(:before_send, "transaction")
                -          transport.record_lost_event(:before_send, "span", num: spans_before + 1)
                -          return
                -        else
                +        if event.is_a?(TransactionEvent) || event.is_a?(Hash)
                @@ -204,0 +211,15 @@
                +
                +          if event.is_a?(Hash)
                +            log_debug(<<~MSG)
                +              Returning a Hash from before_send_transaction is deprecated and will be removed in the next major version.
                +              Please return a Sentry::TransactionEvent object instead.
                +            MSG
                +          end
                +        else
                +          # Avoid serializing the event object in this case because we aren't sure what it is and what it contains
                +          log_debug(<<~MSG)
                +            Discarded event because before_send_transaction didn't return a Sentry::TransactionEvent object but an instance of #{event.class}
                +          MSG
                +          transport.record_lost_event(:before_send, "transaction")
                +          transport.record_lost_event(:before_send, "span", num: spans_before + 1)
                +          return
        lib/sentry/configuration.rb
                --- /tmp/d20250207-3521-gtbebp/sentry-ruby-5.22.1/lib/sentry/configuration.rb	2025-02-07 03:36:32.798667780 +0000
                +++ /tmp/d20250207-3521-gtbebp/sentry-ruby-5.22.4/lib/sentry/configuration.rb	2025-02-07 03:36:32.812667709 +0000
                @@ -362,0 +363,36 @@
                +
                +      def validations
                +        @validations ||= {}
                +      end
                +
                +      def validate(attribute, optional: false, type: nil)
                +        validations[attribute] = {
                +          optional: optional,
                +          type: type,
                +          proc: build_validation_proc(optional, type)
                +        }
                +      end
                +
                +      private
                +
                +      def build_validation_proc(optional, type)
                +        case type
                +        when :numeric
                +          ->(value) do
                +            if optional && value.nil?
                +              true
                +            else
                +              unless value.is_a?(Numeric)
                +                message = "must be a Numeric"
                +                message += " or nil" if optional
                +
                +                { error: message, value: value }
                +              else
                +                true
                +              end
                +            end
                +          end
                +        else
                +          ->(value) { true }
                +        end
                +      end
                @@ -364,0 +401,3 @@
                +    validate :traces_sample_rate, optional: true, type: :numeric
                +    validate :profiles_sample_rate, optional: true, type: :numeric
                +
                @@ -419,0 +459,18 @@
                +    def validate
                +      if profiler_class == Sentry::Profiler && profiles_sample_rate && !Sentry.dependency_installed?(:StackProf)
                +        log_warn("Please add the 'stackprof' gem to your Gemfile to use the StackProf profiler with Sentry.")
                +      end
                +
                +      if profiler_class == Sentry::Vernier::Profiler && profiles_sample_rate && !Sentry.dependency_installed?(:Vernier)
                +        log_warn("Please add the 'vernier' gem to your Gemfile to use the Vernier profiler with Sentry.")
                +      end
                +
                +      self.class.validations.each do |attribute, validation|
                +        value = public_send(attribute)
                +
                +        next if (result = validation[:proc].call(value)) === true
                +
                +        raise ArgumentError, result[:error]
                +      end
                +    end
                +
                @@ -492,4 +548,0 @@
                -    def is_numeric_or_nil?(value)
                -      value.is_a?(Numeric) || value.nil?
                -    end
                -
                @@ -497 +549,0 @@
                -      raise ArgumentError, "traces_sample_rate must be a Numeric or nil" unless is_numeric_or_nil?(traces_sample_rate)
                @@ -502,2 +553,0 @@
                -      raise ArgumentError, "profiles_sample_rate must be a Numeric or nil" unless is_numeric_or_nil?(profiles_sample_rate)
                -      log_warn("Please make sure to include the 'stackprof' gem in your Gemfile to use Profiling with Sentry.") unless defined?(StackProf)
                @@ -512 +561,0 @@
                -          raise ArgumentError, "Please add the 'vernier' gem to your Gemfile to use the Vernier profiler with Sentry."
        lib/sentry/cron/monitor_check_ins.rb
                --- /tmp/d20250207-3521-gtbebp/sentry-ruby-5.22.1/lib/sentry/cron/monitor_check_ins.rb	2025-02-07 03:36:32.799667775 +0000
                +++ /tmp/d20250207-3521-gtbebp/sentry-ruby-5.22.4/lib/sentry/cron/monitor_check_ins.rb	2025-02-07 03:36:32.813667704 +0000
                @@ -17 +17 @@
                -          start = Sentry.utc_now.to_i
                +          start = Metrics::Timing.duration_start
                @@ -22 +22 @@
                -            duration = Sentry.utc_now.to_i - start
                +            duration = Metrics::Timing.duration_end(start)
                @@ -32 +32 @@
                -            duration = Sentry.utc_now.to_i - start
                +            duration = Metrics::Timing.duration_end(start)
        lib/sentry/metrics/timing.rb
                --- /tmp/d20250207-3521-gtbebp/sentry-ruby-5.22.1/lib/sentry/metrics/timing.rb	2025-02-07 03:36:32.803667755 +0000
                +++ /tmp/d20250207-3521-gtbebp/sentry-ruby-5.22.4/lib/sentry/metrics/timing.rb	2025-02-07 03:36:32.818667678 +0000
                @@ -39,0 +40,8 @@
                +
                +        def duration_start
                +          Process.clock_gettime(Process::CLOCK_MONOTONIC)
                +        end
                +
                +        def duration_end(start)
                +          Process.clock_gettime(Process::CLOCK_MONOTONIC) - start
                +        end
        lib/sentry/net/http.rb
                --- /tmp/d20250207-3521-gtbebp/sentry-ruby-5.22.1/lib/sentry/net/http.rb	2025-02-07 03:36:32.804667750 +0000
                +++ /tmp/d20250207-3521-gtbebp/sentry-ruby-5.22.4/lib/sentry/net/http.rb	2025-02-07 03:36:32.818667678 +0000
                @@ -15,0 +16 @@
                +      URI_PARSER = URI.const_defined?("RFC2396_PARSER") ? URI::RFC2396_PARSER : URI::DEFAULT_PARSER
                @@ -69 +70 @@
                -        uri = req.uri || URI.parse(URI::DEFAULT_PARSER.escape("#{use_ssl? ? 'https' : 'http'}://#{hostname}#{req.path}"))
                +        uri = req.uri || URI.parse(URI_PARSER.escape("#{use_ssl? ? 'https' : 'http'}://#{hostname}#{req.path}"))
        lib/sentry/version.rb
                --- /tmp/d20250207-3521-gtbebp/sentry-ruby-5.22.1/lib/sentry/version.rb	2025-02-07 03:36:32.808667729 +0000
                +++ /tmp/d20250207-3521-gtbebp/sentry-ruby-5.22.4/lib/sentry/version.rb	2025-02-07 03:36:32.823667653 +0000
                @@ -4 +4 @@
                -  VERSION = "5.22.1"
                +  VERSION = "5.22.4"

@dependabot dependabot bot force-pushed the dependabot/bundler/sentry-ruby-5.22.4 branch 3 times, most recently from e48b219 to fe1c06c Compare February 9, 2025 20:53
Bumps [sentry-ruby](https://github.com/getsentry/sentry-ruby) from 5.22.1 to 5.22.4.
- [Release notes](https://github.com/getsentry/sentry-ruby/releases)
- [Changelog](https://github.com/getsentry/sentry-ruby/blob/master/CHANGELOG.md)
- [Commits](getsentry/sentry-ruby@5.22.1...5.22.4)

---
updated-dependencies:
- dependency-name: sentry-ruby
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/bundler/sentry-ruby-5.22.4 branch from fe1c06c to 7be50d9 Compare February 9, 2025 20:57
@dentarg dentarg merged commit 4a5eefc into main Feb 9, 2025
7 checks passed
@dentarg dentarg deleted the dependabot/bundler/sentry-ruby-5.22.4 branch February 9, 2025 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant