sentry-rails 5.20.1 → 5.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/Rakefile +2 -0
- data/app/jobs/sentry/send_event_job.rb +2 -0
- data/bin/console +1 -0
- data/lib/generators/sentry_generator.rb +2 -0
- data/lib/sentry/rails/action_cable.rb +3 -1
- data/lib/sentry/rails/active_job.rb +4 -2
- data/lib/sentry/rails/background_worker.rb +2 -0
- data/lib/sentry/rails/backtrace_cleaner.rb +4 -2
- data/lib/sentry/rails/breadcrumb/active_support_logger.rb +2 -0
- data/lib/sentry/rails/breadcrumb/monotonic_active_support_logger.rb +2 -0
- data/lib/sentry/rails/capture_exceptions.rb +4 -2
- data/lib/sentry/rails/configuration.rb +2 -0
- data/lib/sentry/rails/controller_methods.rb +2 -0
- data/lib/sentry/rails/controller_transaction.rb +3 -1
- data/lib/sentry/rails/engine.rb +2 -0
- data/lib/sentry/rails/error_subscriber.rb +2 -0
- data/lib/sentry/rails/instrument_payload_cleanup_helper.rb +2 -0
- data/lib/sentry/rails/overrides/streaming_reporter.rb +2 -0
- data/lib/sentry/rails/railtie.rb +2 -0
- data/lib/sentry/rails/rescued_exception_interceptor.rb +2 -0
- data/lib/sentry/rails/tracing/abstract_subscriber.rb +2 -0
- data/lib/sentry/rails/tracing/action_controller_subscriber.rb +4 -2
- data/lib/sentry/rails/tracing/action_view_subscriber.rb +4 -2
- data/lib/sentry/rails/tracing/active_storage_subscriber.rb +4 -2
- data/lib/sentry/rails/tracing.rb +2 -0
- data/lib/sentry/rails/version.rb +3 -1
- data/lib/sentry/rails.rb +2 -0
- data/lib/sentry-rails.rb +2 -0
- data/sentry-rails.gemspec +3 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 261db1bfb141ef1e485ba222e02c98dc0fd870270ba5e88cfe7a9b7f3b63ad1d
|
4
|
+
data.tar.gz: 762710544720a0999630de260665fde9cc863a9cd3decc1265ed6110c743a098
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4cea0d02e60caed2506051d1801969809e8d4282b918ff73d1ffda19edfe5d80b2c2948366d351dd9fed170129cc3ca6d1fbfe61e17d190b0aa284a4dc51761
|
7
|
+
data.tar.gz: 01415df0d35fc7ee3b795b672a13382e758d2ae626a51fad138fd8f2d9756ef4e6a33549cba4e334bb694c7e7fb562cd3746f7aeeed45fda6b9be0b0a2cbedc3
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
data/bin/console
CHANGED
@@ -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"
|
20
|
-
SPAN_ORIGIN = "auto.queue.active_job"
|
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,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*\))
|
8
|
-
RENDER_TEMPLATE_PATTERN = /:in `.*_\w+_{2,3}\d+_\d+'
|
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,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"
|
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"
|
25
|
+
"http.server"
|
24
26
|
end
|
25
27
|
|
26
28
|
def capture_exception(exception, env)
|
data/lib/sentry/rails/engine.rb
CHANGED
data/lib/sentry/rails/railtie.rb
CHANGED
@@ -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"
|
12
|
-
SPAN_ORIGIN = "auto.view.rails"
|
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."
|
9
|
-
SPAN_ORIGIN = "auto.template.rails"
|
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"
|
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}"
|
29
|
+
op: "file.#{event_name}",
|
28
30
|
origin: SPAN_ORIGIN,
|
29
31
|
start_timestamp: payload[START_TIMESTAMP_NAME],
|
30
32
|
description: payload[:service],
|
data/lib/sentry/rails/tracing.rb
CHANGED
data/lib/sentry/rails/version.rb
CHANGED
data/lib/sentry/rails.rb
CHANGED
data/lib/sentry-rails.rb
CHANGED
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.
|
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
92
|
-
source_code_uri: https://github.com/getsentry/sentry-ruby/tree/5.
|
93
|
-
changelog_uri: https://github.com/getsentry/sentry-ruby/blob/5.
|
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.
|
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:
|