raygun-apm-rails 1.0.32 → 1.0.37

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: cbfeaa5764448f37763271c00efe86f96521db6b3d75ed339769d68b9484e656
4
- data.tar.gz: 311c208e215c8efa26a10b12981cc6a553f36ecee50241c02b0363f324348548
3
+ metadata.gz: 1e67b0bcb91d871a5391736b9ce6d957cf024b74b7e107aecdaef46656cc59a0
4
+ data.tar.gz: 72777711d1ca49c42f1fbdb578f3ba0142fba0fc423df4e2b838de360e56e060
5
5
  SHA512:
6
- metadata.gz: fc0cb6606e7d22c8eda85a20b2bef9a9619b5beac1a6f4245308e5192d61946d9208da387fd751935420b09ff661d217c05a05f96a8491b68b7943d7cdfdf131
7
- data.tar.gz: 89f6166d481fb5b8172176292c9ba87501f15116e3266b1f8766180bd03a165d0fb33637f055e4e00153227e97b620e9591e73faf6c4865401555321f6567b41
6
+ metadata.gz: 0a8d7b51f640b98c49a7158296c164de52c91902f55ef513ef28d7f591d37f41472cd99c2a4aebe7652f13707c5a2a313c6df686e70086ed8e841f1cb7e9d327
7
+ data.tar.gz: 57f3f14013a6014dc86763cd75e8a74e6301d6cfe8bc9a3f9bd5603d511a68b6e79e420b739da68f9ec6e407f6f4a2c2c05e583320ed3ba61fa7a65eaf2b0967
@@ -1,5 +1,25 @@
1
1
  = Changelog
2
2
 
3
+ == 1.0.37 (June 28, 2020)
4
+
5
+ * Oust Raygun::Apm::Rails::Middleware#Ruby_APM_request_error as the Agent now allows empty body requests for specific error conditions
6
+
7
+ == 1.0.36 (June 27, 2020)
8
+
9
+ * Some blacklist cleanups and ambiguity removal
10
+
11
+ == 1.0.35 (June 27, 2020)
12
+
13
+ * Whitelist key ActiveStorage APIs
14
+
15
+ == 1.0.34 (June 17, 2020)
16
+
17
+ * Align with rubyesque blacklist syntax support from profiler version 1.0.44
18
+
19
+ == 1.0.33 (June 7, 2020)
20
+
21
+ * Integrate exception correlation with rayrun4ruby
22
+
3
23
  == 1.0.32 (June 6, 2020)
4
24
 
5
25
  * Move raygun4ruby whitelisting and blacklisting out to profiler core
@@ -1,15 +1,15 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- raygun-apm-rails (1.0.32)
5
- raygun-apm (~> 1.0.15)
4
+ raygun-apm-rails (1.0.37)
5
+ raygun-apm (~> 1.0.44)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
10
  minitest (5.13.0)
11
11
  rake (10.5.0)
12
- raygun-apm (1.0.42-universal-darwin)
12
+ raygun-apm (1.0.46-x86-linux)
13
13
 
14
14
  PLATFORMS
15
15
  ruby
@@ -9,17 +9,23 @@ module Raygun
9
9
  BLACKLIST = %w{
10
10
  #<ActiveRecord
11
11
  #<ActiveModel
12
- Benchmark
13
- BigDecimal
14
- Concurrent
15
- Date
16
- DateAndTime
17
- DateTime
18
- Delegator
19
- Digest
20
- ERB
21
- SecureRandom
22
- URI
12
+ Benchmark#
13
+ Benchmark::
14
+ BigDecimal#
15
+ Benchmark::
16
+ Concurrent#
17
+ Concurrent::
18
+ Date#
19
+ Date::
20
+ DateAndTime#
21
+ DateAndTime::
22
+ DateTime#
23
+ DateTime::
24
+ Delegator#
25
+ Digest#
26
+ Digest::
27
+ SecureRandom#
28
+ SecureRandom::
23
29
  AbstractController
24
30
  ActionCable
25
31
  ActionController
@@ -34,8 +40,10 @@ module Raygun
34
40
  ActiveStorage
35
41
  ActiveSupport
36
42
  Arel
37
- Mail
38
- Mime
43
+ Mail#
44
+ Mail::
45
+ Mime#
46
+ Mime::
39
47
  Rails
40
48
  Rack
41
49
  I18n
@@ -77,8 +85,7 @@ module Raygun
77
85
  Grape
78
86
  Mustermann
79
87
  Enumeration
80
- +Raygun::Apm::Rails::Middleware::Ruby_APM_profiler_trace
81
- +Raygun::Apm::Rails::Middleware::Ruby_APM_request_error
88
+ +Raygun::Apm::Rails::Middleware#Ruby_APM_profiler_trace
82
89
  WebpackHelper
83
90
  Ripper
84
91
  Webpack
@@ -105,10 +112,21 @@ module Raygun
105
112
  autosave_associated_records_for_
106
113
  validate_associated_records_for_
107
114
  will_save_change_to_
115
+ +ActiveStorage::Blob#upload
116
+ +ActiveStorage::Blob#download
117
+ +ActiveStorage::DiskController#show
118
+ +ActiveStorage::DiskController#update
119
+ +ActiveStorage::DirectUploadsController#create
120
+ +ActiveStorage::BlobsController#show
121
+ +ActiveStorage::RepresentationsController#show
108
122
  }
109
123
 
110
- def self.raygun4ruby?
111
- defined?(Raygun) && Raygun.respond_to?(:configured?) && Raygun.configured?
124
+ def self.raygun4ruby?(configured = true)
125
+ if configured
126
+ defined?(Raygun) && Raygun.respond_to?(:configured?) && Raygun.configured?
127
+ else
128
+ defined?(Raygun) && Raygun.respond_to?(:configured?)
129
+ end
112
130
  end
113
131
  end
114
132
  end
@@ -29,22 +29,17 @@ module Raygun
29
29
  begin
30
30
  res = @app.call(env)
31
31
  if res && (status = res.first) >= 400 && status < 600
32
- Ruby_APM_request_error do
33
- message = Rack::Utils::HTTP_STATUS_CODES[status]
34
- begin
35
- raise "HTTP #{status} #{message}"
36
- rescue => e
37
- Raygun.track_exception(e, env) if Raygun::Apm::Rails.raygun4ruby?
38
- end
39
- exceptional_http_in_handler(env, status) if @tracer
32
+ message = Rack::Utils::HTTP_STATUS_CODES[status]
33
+ begin
34
+ raise "HTTP #{status} #{message}"
35
+ rescue => e
36
+ crash_report_exception(e)
40
37
  end
38
+ exceptional_http_in_handler(env, status) if @tracer
41
39
  end
42
40
  rescue => e
43
- Ruby_APM_request_error do
44
- raise e rescue nil
45
- Raygun.track_exception(e, env) if Raygun::Apm::Rails.raygun4ruby?
46
- exceptional_http_in_handler(env, 500) if @tracer
47
- end
41
+ crash_report_exception(e)
42
+ exceptional_http_in_handler(env, 500) if @tracer
48
43
  exception = e
49
44
  end
50
45
  end
@@ -181,6 +176,12 @@ module Raygun
181
176
  yield
182
177
  end
183
178
 
179
+ def crash_report_exception(exception)
180
+ if Raygun::Apm::Rails.raygun4ruby?
181
+ Raygun.track_exception(exception, correlation_id: exception.instance_variable_get(:@__raygun_correlation_id))
182
+ end
183
+ end
184
+
184
185
  def self.finalize(tracer)
185
186
  proc {tracer.process_ended}
186
187
  end
@@ -6,7 +6,7 @@ module Raygun
6
6
  require "raygun/apm"
7
7
  require "raygun/apm/rails/middleware"
8
8
  Raygun::Apm::Blacklist.extend_with Raygun::Apm::Rails::BLACKLIST
9
- if Raygun::Apm::Rails.raygun4ruby?
9
+ if Raygun::Apm::Rails.raygun4ruby?(false)
10
10
  # Remove the exception notifier because we handle it in the APM middleware now instead
11
11
  app.middleware.delete Raygun::Middleware::RackExceptionInterceptor
12
12
  end
@@ -1,7 +1,7 @@
1
1
  module Raygun
2
2
  module Apm
3
3
  module Rails
4
- VERSION = "1.0.32"
4
+ VERSION = "1.0.37"
5
5
  end
6
6
  end
7
7
  end
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ["lib"]
22
22
 
23
- spec.add_dependency "raygun-apm", "~> 1.0.15"
23
+ spec.add_dependency "raygun-apm", "~> 1.0.44"
24
24
  spec.add_development_dependency "bundler", "~> 2.1.4"
25
25
  spec.add_development_dependency "rake", "~> 10.0"
26
26
  spec.add_development_dependency "minitest", "~> 5.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raygun-apm-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.32
4
+ version: 1.0.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raygun
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-06-05 00:00:00.000000000 Z
12
+ date: 2020-06-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: raygun-apm
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 1.0.15
20
+ version: 1.0.44
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 1.0.15
27
+ version: 1.0.44
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: bundler
30
30
  requirement: !ruby/object:Gem::Requirement