builder_apm 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ce10ef00890d74a1b18ef6afb1644c0983a9ae1a5f5174aadcdcc7957dabba8
4
- data.tar.gz: 1fc6f2f584168cb7081bd47be58107bbee2d8e3741306c2d3e009ef94118819c
3
+ metadata.gz: 9e345a9d0a4268df1fd70c2dd2311eba4ce9fe9172907a74ec03b6922b6623fd
4
+ data.tar.gz: e657d3f16327b2c8aa0a79f90a5a80f57350205fccb516ac6d58d7d1e3e0bcc9
5
5
  SHA512:
6
- metadata.gz: 65ce830867f91ccf8ed25a23fd632625e9b3fe8cefcdc9460ffbd0aa666653dc39ee7776d063be82f156c2a29841088c176d0d1002460654fa1d758aefd44251
7
- data.tar.gz: 217349f4f9cc1f9e094849237dd650b262dbf1d0f43fb721417e05895e2d8ffc80351e425058090044614ee83656313bd8a5ff6889ff32c3387a604bc21d945c
6
+ metadata.gz: 3b644056f083a38a59fdb5f94c26f5108e72474cc5d7c01e76ef3f7d56802b0b87c96602f723e260f9b29894de749852b3c198f80dcf0c3a28960143e28cd029
7
+ data.tar.gz: c09bfba63427594bc9a7b51cc70122902d6407b8e65415994a934c48654a756c65a3ab4e5119aa811e491f1639107fbc2b2b27c9bb36a566d0b12a2926153da5
@@ -55,11 +55,14 @@ module BuilderApm
55
55
  view_runtime: event.payload[:view_runtime],
56
56
  stack: Thread.current[:stack]
57
57
  }
58
- if event.payload[:exception]
59
- exception_class, exception_message = event.payload[:exception]
60
- data[:exception_class] = exception_class
61
- data[:exception_message] = exception_message
62
- data[:exception_backtrace] = event.payload[:exception_object].backtrace #.select { |line| line.start_with?(Rails.root.to_s) }
58
+
59
+ if event.payload[:exception_object]
60
+ exception = event.payload[:exception_object]
61
+ status = ActionDispatch::ExceptionWrapper.new(Rails.backtrace_cleaner, exception).status_code
62
+ data[:status] = status
63
+ data[:exception_class] = exception.class
64
+ data[:exception_message] = exception.message
65
+ data[:exception_backtrace] = exception.backtrace #.select { |line| line.start_with?(Rails.root.to_s) }
63
66
  end
64
67
 
65
68
  data
@@ -1,3 +1,3 @@
1
1
  module BuilderApm
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: builder_apm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Ketelle