sentry-rails 5.20.1 → 5.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f224892c221e7a3250fb8b51f7484699ce5e927e4d4bb6e757c0bd5dc232c3d
4
- data.tar.gz: 5dd2b6914d7bdee52f83bfbcaf12d56b7044cd25fda0ef2d9ca736553254a306
3
+ metadata.gz: 261db1bfb141ef1e485ba222e02c98dc0fd870270ba5e88cfe7a9b7f3b63ad1d
4
+ data.tar.gz: 762710544720a0999630de260665fde9cc863a9cd3decc1265ed6110c743a098
5
5
  SHA512:
6
- metadata.gz: 536c8d9aa4c7e16c23452cd4e7ee675c5a7f1740567f0f99a806f5b2ae57721f4ffeced8e4430a43008bacc7921cfad827ae21efc99c5b901d1c6479975d1ab3
7
- data.tar.gz: d7e621b58c24bbee5b7559ab81b5b12230af0ca3a01947107e76fa0dc6f11d804e2a1673cdde660e9304e81b3674f2d3574dc31909b5e03a82e7560555907b5f
6
+ metadata.gz: c4cea0d02e60caed2506051d1801969809e8d4282b918ff73d1ffda19edfe5d80b2c2948366d351dd9fed170129cc3ca6d1fbfe61e17d190b0aa284a4dc51761
7
+ data.tar.gz: 01415df0d35fc7ee3b795b672a13382e758d2ae626a51fad138fd8f2d9756ef4e6a33549cba4e334bb694c7e7fb562cd3746f7aeeed45fda6b9be0b0a2cbedc3
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source "https://rubygems.org"
2
4
  git_source(:github) { |name| "https://github.com/#{name}.git" }
3
5
 
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "bundler/gem_tasks"
2
4
  require "rspec/core/rake_task"
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  if defined?(ActiveJob)
2
4
  module Sentry
3
5
  parent_job =
data/bin/console CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
4
  require "bundler/setup"
4
5
  require "sentry/ruby"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "rails/generators/base"
2
4
 
3
5
  class SentryGenerator < ::Rails::Generators::Base
@@ -1,8 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Sentry
2
4
  module Rails
3
5
  module ActionCableExtensions
4
6
  class ErrorHandler
5
- OP_NAME = "websocket.server".freeze
7
+ OP_NAME = "websocket.server"
6
8
  SPAN_ORIGIN = "auto.http.rails.actioncable"
7
9
 
8
10
  class << self
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Sentry
2
4
  module Rails
3
5
  module ActiveJobExtensions
@@ -16,8 +18,8 @@ module Sentry
16
18
  end
17
19
 
18
20
  class SentryReporter
19
- OP_NAME = "queue.active_job".freeze
20
- SPAN_ORIGIN = "auto.queue.active_job".freeze
21
+ OP_NAME = "queue.active_job"
22
+ SPAN_ORIGIN = "auto.queue.active_job"
21
23
 
22
24
  class << self
23
25
  def record(job, &block)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Sentry
2
4
  class BackgroundWorker
3
5
  def _perform(&block)
@@ -1,11 +1,13 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "active_support/backtrace_cleaner"
2
4
  require "active_support/core_ext/string/access"
3
5
 
4
6
  module Sentry
5
7
  module Rails
6
8
  class BacktraceCleaner < ActiveSupport::BacktraceCleaner
7
- APP_DIRS_PATTERN = /\A(?:\.\/)?(?:app|config|lib|test|\(\w*\))/.freeze
8
- RENDER_TEMPLATE_PATTERN = /:in `.*_\w+_{2,3}\d+_\d+'/.freeze
9
+ APP_DIRS_PATTERN = /\A(?:\.\/)?(?:app|config|lib|test|\(\w*\))/
10
+ RENDER_TEMPLATE_PATTERN = /:in `.*_\w+_{2,3}\d+_\d+'/
9
11
 
10
12
  def initialize
11
13
  super
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Sentry
2
4
  module Rails
3
5
  module Breadcrumb
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "sentry/rails/instrument_payload_cleanup_helper"
2
4
 
3
5
  module Sentry
@@ -1,8 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Sentry
2
4
  module Rails
3
5
  class CaptureExceptions < Sentry::Rack::CaptureExceptions
4
6
  RAILS_7_1 = Gem::Version.new(::Rails.version) >= Gem::Version.new("7.1.0.alpha")
5
- SPAN_ORIGIN = "auto.http.rails".freeze
7
+ SPAN_ORIGIN = "auto.http.rails"
6
8
 
7
9
  def initialize(_)
8
10
  super
@@ -20,7 +22,7 @@ module Sentry
20
22
  end
21
23
 
22
24
  def transaction_op
23
- "http.server".freeze
25
+ "http.server"
24
26
  end
25
27
 
26
28
  def capture_exception(exception, env)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "sentry/rails/tracing/action_controller_subscriber"
2
4
  require "sentry/rails/tracing/action_view_subscriber"
3
5
  require "sentry/rails/tracing/active_record_subscriber"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Sentry
2
4
  module Rails
3
5
  module ControllerMethods
@@ -1,7 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Sentry
2
4
  module Rails
3
5
  module ControllerTransaction
4
- SPAN_ORIGIN = "auto.view.rails".freeze
6
+ SPAN_ORIGIN = "auto.view.rails"
5
7
 
6
8
  def self.included(base)
7
9
  base.prepend_around_action(:sentry_around_action)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Sentry
2
4
  class Engine < ::Rails::Engine
3
5
  isolate_namespace Sentry
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Sentry
2
4
  module Rails
3
5
  # This is not a user-facing class. You should use it with Rails 7.0's error reporter feature and its interfaces.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Sentry
2
4
  module Rails
3
5
  module InstrumentPayloadCleanupHelper
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Sentry
2
4
  module Rails
3
5
  module Overrides
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "sentry/rails/capture_exceptions"
2
4
  require "sentry/rails/rescued_exception_interceptor"
3
5
  require "sentry/rails/backtrace_cleaner"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Sentry
2
4
  module Rails
3
5
  class RescuedExceptionInterceptor
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Sentry
2
4
  module Rails
3
5
  module Tracing
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "sentry/rails/tracing/abstract_subscriber"
2
4
  require "sentry/rails/instrument_payload_cleanup_helper"
3
5
 
@@ -8,8 +10,8 @@ module Sentry
8
10
  extend InstrumentPayloadCleanupHelper
9
11
 
10
12
  EVENT_NAMES = ["process_action.action_controller"].freeze
11
- OP_NAME = "view.process_action.action_controller".freeze
12
- SPAN_ORIGIN = "auto.view.rails".freeze
13
+ OP_NAME = "view.process_action.action_controller"
14
+ SPAN_ORIGIN = "auto.view.rails"
13
15
 
14
16
  def self.subscribe!
15
17
  Sentry.logger.warn <<~MSG
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "sentry/rails/tracing/abstract_subscriber"
2
4
 
3
5
  module Sentry
@@ -5,8 +7,8 @@ module Sentry
5
7
  module Tracing
6
8
  class ActionViewSubscriber < AbstractSubscriber
7
9
  EVENT_NAMES = ["render_template.action_view"].freeze
8
- SPAN_PREFIX = "template.".freeze
9
- SPAN_ORIGIN = "auto.template.rails".freeze
10
+ SPAN_PREFIX = "template."
11
+ SPAN_ORIGIN = "auto.template.rails"
10
12
 
11
13
  def self.subscribe!
12
14
  subscribe_to_event(EVENT_NAMES) do |event_name, duration, payload|
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "sentry/rails/tracing/abstract_subscriber"
2
4
 
3
5
  module Sentry
@@ -19,12 +21,12 @@ module Sentry
19
21
  analyze.active_storage
20
22
  ].freeze
21
23
 
22
- SPAN_ORIGIN = "auto.file.rails".freeze
24
+ SPAN_ORIGIN = "auto.file.rails"
23
25
 
24
26
  def self.subscribe!
25
27
  subscribe_to_event(EVENT_NAMES) do |event_name, duration, payload|
26
28
  record_on_current_span(
27
- op: "file.#{event_name}".freeze,
29
+ op: "file.#{event_name}",
28
30
  origin: SPAN_ORIGIN,
29
31
  start_timestamp: payload[START_TIMESTAMP_NAME],
30
32
  description: payload[:service],
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Sentry
2
4
  module Rails
3
5
  module Tracing
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Sentry
2
4
  module Rails
3
- VERSION = "5.20.1"
5
+ VERSION = "5.21.0"
4
6
  end
5
7
  end
data/lib/sentry/rails.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "rails"
2
4
  require "sentry-ruby"
3
5
  require "sentry/integrable"
data/lib/sentry-rails.rb CHANGED
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "sentry/rails/version"
2
4
  require "sentry/rails"
data/sentry-rails.gemspec CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative "lib/sentry/rails/version"
2
4
 
3
5
  Gem::Specification.new do |spec|
@@ -29,5 +31,5 @@ Gem::Specification.new do |spec|
29
31
  spec.require_paths = ["lib"]
30
32
 
31
33
  spec.add_dependency "railties", ">= 5.0"
32
- spec.add_dependency "sentry-ruby", "~> 5.20.1"
34
+ spec.add_dependency "sentry-ruby", "~> 5.21.0"
33
35
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentry-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.20.1
4
+ version: 5.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sentry Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-27 00:00:00.000000000 Z
11
+ date: 2024-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 5.20.1
33
+ version: 5.21.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 5.20.1
40
+ version: 5.21.0
41
41
  description: A gem that provides Rails integration for the Sentry error logger
42
42
  email: accounts@sentry.io
43
43
  executables: []
@@ -84,15 +84,15 @@ files:
84
84
  - lib/sentry/rails/tracing/active_storage_subscriber.rb
85
85
  - lib/sentry/rails/version.rb
86
86
  - sentry-rails.gemspec
87
- homepage: https://github.com/getsentry/sentry-ruby/tree/5.20.1/sentry-rails
87
+ homepage: https://github.com/getsentry/sentry-ruby/tree/5.21.0/sentry-rails
88
88
  licenses:
89
89
  - MIT
90
90
  metadata:
91
- homepage_uri: https://github.com/getsentry/sentry-ruby/tree/5.20.1/sentry-rails
92
- source_code_uri: https://github.com/getsentry/sentry-ruby/tree/5.20.1/sentry-rails
93
- changelog_uri: https://github.com/getsentry/sentry-ruby/blob/5.20.1/CHANGELOG.md
91
+ homepage_uri: https://github.com/getsentry/sentry-ruby/tree/5.21.0/sentry-rails
92
+ source_code_uri: https://github.com/getsentry/sentry-ruby/tree/5.21.0/sentry-rails
93
+ changelog_uri: https://github.com/getsentry/sentry-ruby/blob/5.21.0/CHANGELOG.md
94
94
  bug_tracker_uri: https://github.com/getsentry/sentry-ruby/issues
95
- documentation_uri: http://www.rubydoc.info/gems/sentry-rails/5.20.1
95
+ documentation_uri: http://www.rubydoc.info/gems/sentry-rails/5.21.0
96
96
  post_install_message:
97
97
  rdoc_options: []
98
98
  require_paths: