stackify-ruby-apm 1.16.0 → 1.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stackify_apm/error_builder.rb +11 -2
- data/lib/stackify_apm/spies/action_dispatch.rb +6 -4
- data/lib/stackify_apm/version.rb +1 -1
- data/stackify-ruby-apm.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e7111fe28e3f3d664a3ee3859b710ca68ad9419dff7be6bf08790c1c33daf93
|
4
|
+
data.tar.gz: 3db3dd30f3a82d751e649c5096fd27da82664184c24b9b434610a0ecac05b21b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41712bd53c97a593907924abefbdeb4421a9487a7622b568d65fa3bbf30d678208d2477a51b9253e98172976ed541d16bf4ce36db48d240d99ff4d125fef7f45
|
7
|
+
data.tar.gz: e1413677db26b8548e83ce3a49d72394256b156feed4a9181f400edab0db46b180a3f6d86f1a737007756cc5edf64984dac1fa1ef2ac766a496489b5dabbdfe3
|
@@ -13,8 +13,15 @@ module StackifyRubyAPM
|
|
13
13
|
error = Error.new
|
14
14
|
error.exception = Error::Exception.new(exception, handled: handled)
|
15
15
|
|
16
|
-
if exception
|
17
|
-
|
16
|
+
if exception
|
17
|
+
backtrace_identifier = :backtrace
|
18
|
+
backtrace = nil
|
19
|
+
|
20
|
+
if exception.respond_to?(:backtrace_identifier, true)
|
21
|
+
backtrace = exception.send(:backtrace_identifier)
|
22
|
+
end
|
23
|
+
|
24
|
+
add_stacktrace error, :exception, backtrace
|
18
25
|
end
|
19
26
|
|
20
27
|
add_transaction_id error
|
@@ -39,6 +46,8 @@ module StackifyRubyAPM
|
|
39
46
|
private
|
40
47
|
|
41
48
|
def add_stacktrace(error, kind, backtrace)
|
49
|
+
return if backtrace.nil?
|
50
|
+
|
42
51
|
stacktrace =
|
43
52
|
@agent.stacktrace_builder.build(backtrace, :error)
|
44
53
|
return unless stacktrace
|
@@ -11,7 +11,7 @@ module StackifyRubyAPM
|
|
11
11
|
::ActionDispatch::ShowExceptions.class_eval do
|
12
12
|
alias_method 'render_exception_without_apm', 'render_exception'
|
13
13
|
|
14
|
-
def render_exception(
|
14
|
+
def render_exception(request, exception, *args)
|
15
15
|
# Creates exception log report
|
16
16
|
#
|
17
17
|
begin
|
@@ -20,7 +20,8 @@ module StackifyRubyAPM
|
|
20
20
|
StackifyRubyAPM.agent.error '[ActionDispatchSpy] Error: repoting exception.'
|
21
21
|
StackifyRubyAPM.agent.error "[ActionDispatchSpy] #{e.inspect}"
|
22
22
|
end
|
23
|
-
|
23
|
+
|
24
|
+
self.send(:render_exception_without_apm, request, exception, *args);
|
24
25
|
end
|
25
26
|
end
|
26
27
|
end
|
@@ -31,7 +32,7 @@ module StackifyRubyAPM
|
|
31
32
|
::ActionDispatch::DebugExceptions.class_eval do
|
32
33
|
alias_method 'render_exception_without_apm', 'render_exception'
|
33
34
|
|
34
|
-
def render_exception(
|
35
|
+
def render_exception(request, exception, *args)
|
35
36
|
# Creates exception log report
|
36
37
|
#
|
37
38
|
begin
|
@@ -40,7 +41,8 @@ module StackifyRubyAPM
|
|
40
41
|
StackifyRubyAPM.agent.error '[ActionDispatchDebugExceptionsSpy] Error: repoting exception.'
|
41
42
|
StackifyRubyAPM.agent.error "[ActionDispatchDebugExceptionsSpy] #{e.inspect}"
|
42
43
|
end
|
43
|
-
|
44
|
+
|
45
|
+
self.send(:render_exception_without_apm, request, exception, *args);
|
44
46
|
end
|
45
47
|
end
|
46
48
|
end
|
data/lib/stackify_apm/version.rb
CHANGED
data/stackify-ruby-apm.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.license = 'Stackify'
|
15
15
|
|
16
16
|
# Set the minimum Ruby version required
|
17
|
-
spec.required_ruby_version = '>=
|
17
|
+
spec.required_ruby_version = '>= 2.0.0'
|
18
18
|
|
19
19
|
git_tracked_files = `git ls-files -z`.split("\x0")
|
20
20
|
gem_ignored_files = `git ls-files -i -X .gemignore -z`.split("\x0")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stackify-ruby-apm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stackify
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -530,7 +530,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
530
530
|
requirements:
|
531
531
|
- - ">="
|
532
532
|
- !ruby/object:Gem::Version
|
533
|
-
version:
|
533
|
+
version: 2.0.0
|
534
534
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
535
535
|
requirements:
|
536
536
|
- - ">="
|