Releases: getsentry/sentry-ruby
5.22.3
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
andbefore_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
5.22.1
5.22.0
op
in transaction context from "queue.sidekiq" to "queue.process". If you rely on this value (e.g. for sampling as described here), then you need to update your configuration accordingly.
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- Fixes #2438
- Fix
RescuedExceptionInterceptor
to handle an empty configuration #2428 - Add mutex sync to
SessionFlusher
aggregates #2469- Fixes #2468
- Fix sentry-rails' backtrace cleaner issues (#2475)
- Fixes #2472
5.21.0
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 addvernier
to yourGemfile
and make sure it is loaded beforesentry-ruby
.# Gemfile gem 'vernier' gem 'sentry-ruby'
Then, set a
profiles_sample_rate
and the newprofiler_class
configuration in your sentry initializer to use the new profiler.# config/initializers/sentry.rb Sentry.init do |config| # ... config.profiles_sample_rate = 1.0 config.profiler_class = Sentry::Vernier::Profiler end
Internal
5.20.1
5.20.0
5.19.0
Features
-
Use
Concurrent.available_processor_count
instead ofConcurrent.usable_processor_count
(#2358) -
Support for tracing Faraday requests (#2345)
- Closes #1795
- Please note that the Faraday instrumentation has some limitations in case of async requests: lostisland/faraday#1381
- lostisland/faraday#1381
Usage:
Sentry.init do |config| # ... config.enabled_patches << :faraday end
-
Support for attachments (#2357)
Usage:
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)
- Closes #2364
-
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