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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ebb6c26f4eef249448035790df567d74b2c81915d42dcba72a4d8dfa83649f0
4
- data.tar.gz: d4a30f83de5976fbacab28c544b27c5d8afb26b13db4af484570e666f4424717
3
+ metadata.gz: 1673dd33d309c742c39e2df143439e594874670700a34bfd243e66acb52d9961
4
+ data.tar.gz: 79b34e352ec8c6e171483b8fd69d6e3d87e210570cdbaeaf6745de8b4d3eaf51
5
5
  SHA512:
6
- metadata.gz: af4ef9861dfdeb3eaa8e721ed92f55d752c8687f53aa818596b7688e0a909e1971e35b0aab90c7a37569eb2930c3e07a17697795b932ffee3e4cecc95e92ba67
7
- data.tar.gz: 8df99628de54aadbe98674602da416dfde21d637f879ea70d540ad4ce830dc740f449da68f390a595893f4ac3665f1b0f8d03edc5d6512e9049cabf5af483585
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.backtrace
17
- add_stacktrace error, :exception, exception.backtrace
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(env, 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
- render_exception_without_apm env, exception
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(env, 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
- render_exception_without_apm env, exception
44
+
45
+ self.send(:render_exception_without_apm, request, exception, *args);
44
46
  end
45
47
  end
46
48
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Sets the version of the APM:
4
4
  module StackifyRubyAPM
5
- VERSION = '1.16.0.beta1'.freeze
5
+ VERSION = '1.17.0.beta1'.freeze
6
6
  end
@@ -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 = '>= 3.0.0'
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.16.0.beta1
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: 2023-05-18 00:00:00.000000000 Z
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: 3.0.0
533
+ version: 2.0.0
534
534
  required_rubygems_version: !ruby/object:Gem::Requirement
535
535
  requirements:
536
536
  - - ">"