stackify-ruby-apm 1.16.0.beta1 → 1.17.0.beta1
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: 1673dd33d309c742c39e2df143439e594874670700a34bfd243e66acb52d9961
|
4
|
+
data.tar.gz: 79b34e352ec8c6e171483b8fd69d6e3d87e210570cdbaeaf6745de8b4d3eaf51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47706eebcd6023e615e1811dede22714d91b0eea335276d1d5087e58ec0984ffa7c26cd6926ef58deacf7d28482d4fd5675564e6fc49cd536af64944355bcf24
|
7
|
+
data.tar.gz: 3df382ccba42f39760f9289588147c179b9033af3177ff1dfc21f19cb747a873c41a076eed211d561bd075a610a5a7c5d34f2ed820a84a3679f098b1572ca5ef
|
@@ -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.beta1
|
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-01-22 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
|
- - ">"
|