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

Update sentry-ruby monorepo to v5.22.3 #95

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Jan 27, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
sentry-rails (source, changelog) 5.15.2 -> 5.22.3 age adoption passing confidence
sentry-ruby (source, changelog) 5.15.2 -> 5.22.3 age adoption passing confidence

Release Notes

getsentry/sentry-ruby (sentry-rails)

v5.22.3

Compare Source

Bug Fixes

v5.22.2

Compare Source

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

v5.22.1

Compare Source

Bug Fixes
  • Safe-navigate to session flusher #​2396
  • Fix latency related nil error for Sidekiq Queues Module span data #​2486

v5.22.0

Compare Source

Features
  • Add include_sentry_event matcher for RSpec #​2424

  • Add support for Sentry Cache instrumentation, when using Rails.cache #​2380

  • Add support for Queue Instrumentation for Sidekiq. #​2403

  • Add support for string errors in error reporter (#​2464)

  • Reset trace_id and add root transaction for sidekiq-cron #​2446

  • Add support for Excon HTTP client instrumentation (#​2383)

    Note: MemoryStore and FileStore require Rails 8.0+

Bug Fixes
  • Fix Vernier profiler not stopping when already stopped #​2429
  • Fix send_default_pii handling in rails controller spans #​2443
  • Fix RescuedExceptionInterceptor to handle an empty configuration #​2428
  • Add mutex sync to SessionFlusher aggregates #​2469
  • Fix sentry-rails' backtrace cleaner issues (#​2475)

v5.21.0

Compare Source

Features
  • Experimental support for multi-threaded profiling using Vernier (#​2372)

    You can have much better profiles if you're using multi-threaded servers like Puma now by leveraging Vernier.
    To use it, first add vernier to your Gemfile and make sure it is loaded before sentry-ruby.

Gemfile

gem 'vernier'
gem 'sentry-ruby'


Then, set a `profiles_sample_rate` and the new `profiler_class` configuration in your sentry initializer to use the new profiler.

```ruby

### config/initializers/sentry.rb

Sentry.init do |config|

### ...
  config.profiles_sample_rate = 1.0
  config.profiler_class = Sentry::Vernier::Profiler
end
Internal
  • Profile items have bigger size limit now (#​2421)
  • Consistent string freezing (#​2422)

v5.20.1

Compare Source

Bug Fixes
  • Skip rubocop.yml in spec.files (#​2420)

v5.20.0

Compare Source

  • Add support for $SENTRY_DEBUG and $SENTRY_SPOTLIGHT (#​2374)
  • Support human readable intervals in sidekiq-cron (#​2387)
  • Set default app dirs pattern (#​2390)
  • Add new strip_backtrace_load_path boolean config (default true) to enable disabling load path stripping (#​2409)
Bug Fixes
  • Fix error events missing a DSC when there's an active span (#​2408)
  • Verifies presence of client before adding a breadcrumb (#​2394)
  • Fix Net:HTTP integration for non-ASCII URI's (#​2417)
  • Prevent Hub from having nil scope and client (#​2402)

v5.19.0

Compare Source

Features

...

config.enabled_patches << :faraday

end


- Support for attachments ([#&#8203;2357](https://redirect.github.com/getsentry/sentry-ruby/pull/2357))

Usage:

```ruby
Sentry.add_attachment(path: '/foo/bar.txt')
Sentry.add_attachment(filename: 'payload.json', bytes: '{"value": 42}'))
  • Transaction data are now included in the context (#​2365)

  • Inject Sentry meta tags in the Rails application layout automatically in the generator (#​2369)

    To turn this behavior off, use

    bin/rails generate sentry --inject-meta false
Bug Fixes
  • Fix skipping connect spans in open-telemetry #​2364

v5.18.2

Compare Source

Bug Fixes
  • Don't overwrite ip_address if already set on user #​2350
  • teardown_sentry_test helper should clear global even processors too (#​2342)
  • Suppress the unnecessary “unsupported options notice” (#​2349)
Internal
  • Use Concurrent.usable_processor_count when it is available (#​2339)
  • Report dropped spans in Client Reports (#​2346)

v5.18.1

Compare Source

Bug Fixes
  • Drop Gem::Specification's usage so it doesn't break bundler standalone (#​2335)

v5.18.0

Compare Source

Features
  • Add generator for initializer generation (#​2286)

    Rails users will be able to use bin/rails generate sentry to generate their config/initializers/sentry.rb file.

  • Notify users when their custom options are discarded (#​2303)

  • Add a new :graphql patch to automatically enable instrumenting GraphQL spans (#​2308)

    Usage:

    Sentry.init do |config|

...

  config.enabled_patches += [:graphql]
end
```
  • Add Sentry.get_trace_propagation_meta helper for injecting meta tags into views (#​2314)

  • Add query source support to sentry-rails (#​2313)

    The feature is only activated in apps that use Ruby 3.2+ and Rails 7.1+. By default only queries that take longer than 100ms will have source recorded, which can be adjusted by updating the value of config.rails.db_query_source_threshold_ms.

  • Log envelope delivery message with debug instead of info (#​2320)

Bug Fixes
  • Don't throw error on arbitrary arguments being passed to capture_event options #​2301
  • Decrease the default number of background worker threads by half (#​2305)
  • Don't mutate enabled_environments when using Sentry::TestHelper (#​2317)
  • Don't use array for transaction names and sources on scope (#​2324)
    • Fixes #​2257
    • BREAKING This removes the internal scope.transaction_names method, please use scope.transaction_name instead
Internal
  • Add origin to spans and transactions to track integration sources for instrumentation (#​2319)

v5.17.3

Compare Source

Internal
  • Update key, unit and tags sanitization logic for metrics #​2292
  • Consolidate client report and rate limit handling with data categories #​2294
  • Record :network_error client reports for send_envelope #​2295
Bug Fixes
  • Make sure isolated envelopes respect config.enabled_environments #​2291

v5.17.2

Compare Source

Internal
  • Add Mechanism interface and default to unhandled for integration exceptions #​2280
Bug Fixes
  • Don't instantiate connection in ActiveRecordSubscriber (#​2278)

v5.17.1

Compare Source

Bug Fixes
  • Fix NoMethodError / Make session_tracking check consistent (#​2269)

v5.17.0

Compare Source

Features
  • Add support for distributed tracing in sentry-delayed_job #​2233
  • Fix warning about default gems on Ruby 3.3.0 (#​2225)
  • Add hint: support to Sentry::Rails::ErrorSubscriber #​2235
  • Add Metrics support
    • Add main APIs and Aggregator thread #​2247

    • Add Sentry::Metrics.timing API for measuring block duration #​2254

    • Add metric summaries on spans #​2255

    • Add config.metrics.before_emit callback #​2258

    • Add code locations for metrics #​2263

      The SDK now supports recording and aggregating metrics. A new thread will be started
      for aggregation and will flush the pending data to Sentry every 5 seconds.

      To enable this behavior, use:

      Sentry.init do |config|

...

  config.metrics.enabled = true
end
```

And then in your application code, collect metrics as follows:

```ruby

increment a simple counter

Sentry::Metrics.increment('button_click')

set a value, unit and tags

Sentry::Metrics.increment('time', 5, unit: 'second', tags: { browser:' firefox' })

distribution - get statistical aggregates from an array of observations

Sentry::Metrics.distribution('page_load', 15.0, unit: 'millisecond')

gauge - record statistical aggregates directly on the SDK, more space efficient

Sentry::Metrics.gauge('page_load', 15.0, unit: 'millisecond')

set - get unique counts of elements

Sentry::Metrics.set('user_view', 'jane')

timing - measure duration of code block, defaults to seconds

will also automatically create a metric.timing span

Sentry::Metrics.timing('how_long') { sleep(1) }

timing - measure duration of code block in other duraton units

Sentry::Metrics.timing('how_long_ms', unit: 'millisecond') { sleep(0.5) }
```

You can filter some keys or update tags on the fly with the `before_emit` callback, which will be triggered before a metric is aggregated.

```ruby
Sentry.init do |config|

...

the 'foo' metric will be filtered and the tags will be updated to add :bar and remove :baz

  config.metrics.before_emit = lambda do |key, tags|
    return nil if key == 'foo'
    tags[:bar] = 42
    tags.delete(:baz)
    true
  end
end
```

By default, the SDK will send code locations for unique metrics (defined by type, key and unit) once a day and with every startup/shutdown of your application.
You can turn this off with the following:

```ruby
Sentry.init do |config|

...

  config.metrics.enable_code_locations = false
end
```
Bug Fixes
  • Fix undefined method 'constantize' issue in sentry-resque (#​2248)
  • Only instantiate SessionFlusher when the SDK is enabled under the current env #​2245
  • Update backtrace parsing regexp to support Ruby 3.4 (#​2252)
  • Make sure sending_allowed? is respected irrespective of spotlight configuration (#​2231)

v5.16.1

Compare Source

Bug Fixes
  • Pin sqlite3 gem for building because of failed release #​2222

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 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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from proelbtn January 27, 2024 08:38
@renovate renovate bot changed the title Update sentry-ruby monorepo to v5.16.1 Update sentry-ruby monorepo to v5.17.0 Mar 13, 2024
@renovate renovate bot force-pushed the renovate/sentry-ruby-monorepo branch from 4af8927 to 9194be5 Compare March 13, 2024 17:51
@renovate renovate bot changed the title Update sentry-ruby monorepo to v5.17.0 Update sentry-ruby monorepo to v5.17.1 Mar 15, 2024
@renovate renovate bot force-pushed the renovate/sentry-ruby-monorepo branch from 9194be5 to e3178ea Compare March 15, 2024 16:19
@renovate renovate bot changed the title Update sentry-ruby monorepo to v5.17.1 Update sentry-ruby monorepo to v5.17.2 Apr 4, 2024
@renovate renovate bot force-pushed the renovate/sentry-ruby-monorepo branch from e3178ea to 9d230a1 Compare April 4, 2024 12:13
@renovate renovate bot force-pushed the renovate/sentry-ruby-monorepo branch from 9d230a1 to ad9f7c5 Compare April 11, 2024 17:35
@renovate renovate bot changed the title Update sentry-ruby monorepo to v5.17.2 Update sentry-ruby monorepo to v5.17.3 Apr 11, 2024
@renovate renovate bot force-pushed the renovate/sentry-ruby-monorepo branch from ad9f7c5 to e3020c5 Compare June 25, 2024 15:36
@renovate renovate bot changed the title Update sentry-ruby monorepo to v5.17.3 Update sentry-ruby monorepo to v5.18.0 Jun 25, 2024
@renovate renovate bot force-pushed the renovate/sentry-ruby-monorepo branch from e3020c5 to e1ed3ca Compare July 2, 2024 22:29
@renovate renovate bot changed the title Update sentry-ruby monorepo to v5.18.0 Update sentry-ruby monorepo to v5.18.1 Jul 2, 2024
@renovate renovate bot force-pushed the renovate/sentry-ruby-monorepo branch from e1ed3ca to 8be325c Compare July 23, 2024 17:39
@renovate renovate bot changed the title Update sentry-ruby monorepo to v5.18.1 Update sentry-ruby monorepo to v5.18.2 Jul 23, 2024
@renovate renovate bot force-pushed the renovate/sentry-ruby-monorepo branch from 8be325c to 439e057 Compare August 13, 2024 16:55
@renovate renovate bot changed the title Update sentry-ruby monorepo to v5.18.2 Update sentry-ruby monorepo to v5.19.0 Aug 13, 2024
@renovate renovate bot force-pushed the renovate/sentry-ruby-monorepo branch from 439e057 to bd6e681 Compare September 27, 2024 21:54
@renovate renovate bot changed the title Update sentry-ruby monorepo to v5.19.0 Update sentry-ruby monorepo to v5.20.0 Sep 27, 2024
@renovate renovate bot changed the title Update sentry-ruby monorepo to v5.20.0 Update sentry-ruby monorepo to v5.20.1 Sep 28, 2024
@renovate renovate bot force-pushed the renovate/sentry-ruby-monorepo branch from bd6e681 to a383ab5 Compare October 7, 2024 15:34
@renovate renovate bot changed the title Update sentry-ruby monorepo to v5.20.1 Update sentry-ruby monorepo to v5.21.0 Oct 7, 2024
@renovate renovate bot force-pushed the renovate/sentry-ruby-monorepo branch from a383ab5 to 9a20418 Compare December 4, 2024 15:40
@renovate renovate bot changed the title Update sentry-ruby monorepo to v5.21.0 Update sentry-ruby monorepo to v5.22.0 Dec 4, 2024
@renovate renovate bot force-pushed the renovate/sentry-ruby-monorepo branch from 9a20418 to d8074f7 Compare December 8, 2024 16:13
@renovate renovate bot force-pushed the renovate/sentry-ruby-monorepo branch from d8074f7 to c86102a Compare December 16, 2024 13:28
@renovate renovate bot changed the title Update sentry-ruby monorepo to v5.22.0 Update sentry-ruby monorepo to v5.22.1 Dec 16, 2024
@renovate renovate bot force-pushed the renovate/sentry-ruby-monorepo branch from c86102a to cb4815d Compare January 24, 2025 14:11
@renovate renovate bot changed the title Update sentry-ruby monorepo to v5.22.1 Update sentry-ruby monorepo to v5.22.2 Jan 24, 2025
@renovate renovate bot changed the title Update sentry-ruby monorepo to v5.22.2 Update sentry-ruby monorepo to v5.22.3 Jan 29, 2025
@renovate renovate bot force-pushed the renovate/sentry-ruby-monorepo branch from cb4815d to 40bcc49 Compare January 29, 2025 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants