Skip to content

Update Sentry Gems to '~> 5.12.0'

This MR contains the following updates:

Package Update Change
sentry-rails (changelog) minor '~> 5.10.0' -> '~> 5.12.0'
sentry-ruby (changelog) minor '~> 5.10.0' -> '~> 5.12.0'
sentry-sidekiq (changelog) minor '~> 5.10.0' -> '~> 5.12.0'

MR created with the help of gitlab-org/frontend/renovate-gitlab-bot


Release Notes

getsentry/sentry-ruby (sentry-rails)

v5.12.0

Compare Source

Features
  • Record client reports for profiles #​2107
  • Adopt Rails 7.1's new BroadcastLogger #​2120
  • Support sending events after all retries were performed (sentry-resque) #​2087
  • Add Cron Monitoring support
    • Add Sentry.capture_check_in API for Cron Monitoring #​2117

      You can now track progress of long running scheduled jobs.

      check_in_id = Sentry.capture_check_in('job_name', :in_progress)

do job stuff

Sentry.capture_check_in('job_name', :ok, check_in_id: check_in_id)
```
  • Add Sentry::Cron::MonitorCheckIns module for automatic monitoring of jobs #​2130

    Standard job frameworks such as ActiveJob and Sidekiq can now use this module to automatically capture check ins.

    class ExampleJob < ApplicationJob
      include Sentry::Cron::MonitorCheckIns
    
      sentry_monitor_check_ins
    
      def perform(*args)

do stuff

  end
end
```

```rb
class SidekiqJob
  include Sidekiq::Job
  include Sentry::Cron::MonitorCheckIns

  sentry_monitor_check_ins

  def perform(*args)

do stuff

  end
end
```

You can pass in optional attributes to `sentry_monitor_check_ins` as follows.
```rb

slug defaults to the job class name

sentry_monitor_check_ins slug: 'custom_slug'

define the monitor config with an interval

sentry_monitor_check_ins monitor_config: Sentry::Cron::MonitorConfig.from_interval(1, :minute)

define the monitor config with a crontab

sentry_monitor_check_ins monitor_config: Sentry::Cron::MonitorConfig.from_crontab('5 * * * *')
```
Bug Fixes
  • Rename http.method to http.request.method in Span::DataConventions #​2106
  • Increase Envelope::Item::MAX_SERIALIZED_PAYLOAD_SIZE to 1MB #​2108
  • Fix db_config begin nil in ActiveRecordSubscriber #​2111
  • Always send envelope trace header from dynamic sampling context #​2113
  • Improve TestHelper's setup/teardown helpers (#​2116)
  • Fix Sidekiq tracing headers not being overwritten in case of schedules and retries #​2118
  • Fix exception event sending failed due to source sequence is illegal/malformed utf-8 #​2083

v5.11.0

Compare Source

Features
  • Make :value in SingleExceptionInterface writable, so that it can be modified in before_send under event.exception.values[n].value #​2072

  • Add sampled field to dynamic_sampling_context #​2092

  • Consolidate HTTP span data conventions with OpenTelemetry with Sentry::Span::DataConventions #​2093

  • Consolidate database span data conventions with OpenTelemetry for ActiveRecord and Redis #​2100

  • Add new config.trace_propagation_targets option to set targets for which headers are propagated in outgoing HTTP requests #​2079


Configuration

📅 Schedule: 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 MR becomes conflicted, or you tick the rebase/retry checkbox.

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


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

This MR has been generated by Renovate Bot.

Edited by GitLab Dependency Bot

Merge request reports