stackify-ruby-apm 1.16.0 → 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: c7035174601ce074375fd5afebbe9bfa598be439724f300b1f623017af7f3fb0
4
- data.tar.gz: 5b58d741ebc7b1f90e3a3417a4d084ded8dbd7f9c765dc29c35d3ba64a102bfb
3
+ metadata.gz: 1673dd33d309c742c39e2df143439e594874670700a34bfd243e66acb52d9961
4
+ data.tar.gz: 79b34e352ec8c6e171483b8fd69d6e3d87e210570cdbaeaf6745de8b4d3eaf51
5
5
  SHA512:
6
- metadata.gz: fbb3be71d1f365d24cfea4d2d4beaafa3d0e36fa615ae0d07350def337379098141c4bc9f48102edfa571dc8a7671ff90a3833a9283fce5cdcddcdf5c6399773
7
- data.tar.gz: 26a203e142cfb947dbf0625f645c61f695222a38d67d8da032eae17bcbc0a9a5e97bdfdea0352460beb4f9e71f4b2fd73ffb6e7eea0718817f3abbae2f786a2a
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'.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
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-06-16 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,12 +530,12 @@ 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
+ - - ">"
537
537
  - !ruby/object:Gem::Version
538
- version: '0'
538
+ version: 1.3.1
539
539
  requirements: []
540
540
  rubygems_version: 3.4.10
541
541
  signing_key: