raygun-apm-rails 1.0.35 → 1.0.40

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: 3cea0812f72af7620a40a595a0730f3bf817d9825866fd37757c425a9881165c
4
- data.tar.gz: 0fed587c5e324fc4f788f3b389ef254e45eb99a5bfb3d73fc9f2e72feb014ec8
3
+ metadata.gz: 1affdff67622a0393fa805c03dec12b95a7e96121b912bde7435cefb9d793bb7
4
+ data.tar.gz: c610f30aeed993d831b154ec53a94f1bd0599990b149f97494bb83234dc332d5
5
5
  SHA512:
6
- metadata.gz: 839f8b8331bd29c8ead748da1e2106e7e598721c831d6de54318c45f76e061c68151bd0b584d09d366068c27262878a0cd0a29475783bc702d203075103595d1
7
- data.tar.gz: 272e548b7b7356983313a44a98d13487e886c047ae16af8acc30ddac5ef5373e561d1c29e80da889a71bc4478d91eeb8c713c716bb8a108543367563f8bb8179
6
+ metadata.gz: 4617790e7b5f6c70c282b63cd35ec6297b7f72e27029d6943ba7b1abb2547176d9ee6ab316d2eb2feb64aaff1a5192cb5515d56277353d5f9085482a1844815b
7
+ data.tar.gz: db12daeb9f737e308a61a446e683f286b190d1fcea17547d74cbf0ebd1cda9f4a2ca935a86528cd71043a394586e9d062036a590dd56e51453d52e0075914db5
@@ -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
@@ -78,7 +86,6 @@ module Raygun
78
86
  Mustermann
79
87
  Enumeration
80
88
  +Raygun::Apm::Rails::Middleware#Ruby_APM_profiler_trace
81
- +Raygun::Apm::Rails::Middleware#Ruby_APM_request_error
82
89
  WebpackHelper
83
90
  Ripper
84
91
  Webpack
@@ -28,22 +28,9 @@ module Raygun
28
28
  Ruby_APM_profiler_trace do
29
29
  begin
30
30
  res = @app.call(env)
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
- crash_report_exception(e)
38
- end
39
- exceptional_http_in_handler(env, status) if @tracer
40
- end
41
- end
42
31
  rescue => e
43
- Ruby_APM_request_error do
44
- crash_report_exception(e)
45
- exceptional_http_in_handler(env, 500) if @tracer
46
- end
32
+ crash_report_exception(e)
33
+ exceptional_http_in_handler(env, 500) if @tracer
47
34
  exception = e
48
35
  end
49
36
  end
@@ -86,6 +73,7 @@ module Raygun
86
73
  ActiveSupport::Notifications.unsubscribe(@http_in_subscriber)
87
74
  ActiveSupport::Notifications.unsubscribe(@sql_subscriber)
88
75
  warn "[Raygun APM] notification hooks unsubscribed"
76
+ @tracer.end_trace
89
77
  # Let the GC clean up the sink thread through the finalizer below
90
78
  @tracer = Raygun::Apm::Tracer.instance = nil
91
79
  raise(exception) unless (Raygun::Apm::FatalError === exception)
@@ -1,7 +1,7 @@
1
1
  module Raygun
2
2
  module Apm
3
3
  module Rails
4
- VERSION = "1.0.35"
4
+ VERSION = "1.0.40"
5
5
  end
6
6
  end
7
7
  end
@@ -13,14 +13,12 @@ Gem::Specification.new do |spec|
13
13
  spec.homepage = "https://raygun.com/platform/apm"
14
14
  #spec.license = "MIT"
15
15
 
16
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
17
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
- end
16
+ spec.files = Dir['README.rdoc', 'raygun-apm-rails.gemspec', 'lib/**/*', 'bin/**/*']
19
17
  spec.bindir = "exe"
20
18
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
19
  spec.require_paths = ["lib"]
22
20
 
23
- spec.add_dependency "raygun-apm", "~> 1.0.44"
21
+ spec.add_dependency "raygun-apm", "~> 1.0.53"
24
22
  spec.add_development_dependency "bundler", "~> 2.1.4"
25
23
  spec.add_development_dependency "rake", "~> 10.0"
26
24
  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.35
4
+ version: 1.0.40
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-26 00:00:00.000000000 Z
12
+ date: 2020-09-11 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.44
20
+ version: 1.0.53
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.44
27
+ version: 1.0.53
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: bundler
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -75,12 +75,7 @@ executables: []
75
75
  extensions: []
76
76
  extra_rdoc_files: []
77
77
  files:
78
- - ".gitignore"
79
- - CHANGELOG.rdoc
80
- - Gemfile
81
- - Gemfile.lock
82
78
  - README.rdoc
83
- - Rakefile
84
79
  - bin/console
85
80
  - bin/setup
86
81
  - lib/raygun/apm/rails.rb
@@ -106,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
101
  - !ruby/object:Gem::Version
107
102
  version: '0'
108
103
  requirements: []
109
- rubygems_version: 3.0.6
104
+ rubygems_version: 3.1.2
110
105
  signing_key:
111
106
  specification_version: 4
112
107
  summary: Raygun application performance monitoring for Rails
data/.gitignore DELETED
@@ -1,9 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
- *.gem
@@ -1,80 +0,0 @@
1
- = Changelog
2
-
3
- == 1.0.35 (June 27, 2020)
4
-
5
- * Whitelist key ActiveStorage APIs
6
-
7
- == 1.0.34 (June 17, 2020)
8
-
9
- * Align with rubyesque blacklist syntax support from profiler version 1.0.44
10
-
11
- == 1.0.33 (June 7, 2020)
12
-
13
- * Integrate exception correlation with rayrun4ruby
14
-
15
- == 1.0.32 (June 6, 2020)
16
-
17
- * Move raygun4ruby whitelisting and blacklisting out to profiler core
18
-
19
- == 1.0.31 (May 17, 2020)
20
-
21
- * Remove the Tracer#process_started callback (set on begin transaction command now)
22
-
23
- == 1.0.30 (May 15, 2020)
24
-
25
- * Introduce support for Redis as client adapter
26
-
27
- == 1.0.29 (May 3, 2020)
28
-
29
- * Blacklist a new set of methods injected at runtime by Rails which leads to messy traces
30
-
31
- == 1.0.28 (April 11, 2020)
32
-
33
- * Prefer local variables to Rack::Request methods for event value assignment (Rails 4)
34
-
35
- == 1.0.27 (April 11, 2020)
36
-
37
- * Restore Rails 4 support with caveat that HTTP IN paths are not fully qualified with protocol, host and port
38
-
39
- == 1.0.26 (April 11, 2020)
40
-
41
- * Remove Rails 4 support (no headers element in the notifications hash for HTTP in)
42
-
43
- == 1.0.25 (April 11, 2020)
44
-
45
- * Only ever attempt to emit extended events if a tracer instance is alive
46
-
47
- == 1.0.24 (April 1, 2020)
48
-
49
- * Blacklist Enumeration
50
- * Unsubscribe from previously registered AS::Notifications subscribers as child processes emit double HTTP IN and SQL events otherwise
51
-
52
- == 1.0.23 (March 25, 2020)
53
-
54
- * Do not cache PID on HTTP IN and SQL event initializers
55
-
56
- == 1.0.22 (March 24, 2020)
57
-
58
- * Fix local variable typo in the Rails middleware
59
- * Blacklist TZInfo
60
-
61
- == 1.0.21 (March 19, 2020)
62
-
63
- * Further improvements of emitting exceptions and other error status codes for apps with and without raygun4ruby installed
64
-
65
- == 1.0.20 (March 18, 2020)
66
-
67
- * Introduce support for detecting the presence of raygun4ruby and integrate better with the exception tracker
68
-
69
- == 1.0.19 (March 16, 2020)
70
-
71
- * Improve trace emission of unhandled exceptions in a request context
72
-
73
- == 1.0.18 (March 15, 2020)
74
-
75
- * Ensure a better experience with raygun4ruby with only Raygun::track_exception whitelisted
76
- * Remove the warning on a HTTP IN event with an exception payload - spams STDOUT and already confused some testers
77
- * Ensure errors raised during request exception always result in a fully wrapped trace with a 500 status
78
- * Wrap the exceptional HTTP IN error handler in a fake user code method too to get past the agent gate for that
79
- * Prefer the singleton interface on the Tracer
80
- * Blacklist HTTParty
data/Gemfile DELETED
@@ -1,3 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec
@@ -1,24 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- raygun-apm-rails (1.0.35)
5
- raygun-apm (~> 1.0.44)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- minitest (5.13.0)
11
- rake (10.5.0)
12
- raygun-apm (1.0.45-x86-linux)
13
-
14
- PLATFORMS
15
- ruby
16
-
17
- DEPENDENCIES
18
- bundler (~> 2.1.4)
19
- minitest (~> 5.0)
20
- rake (~> 10.0)
21
- raygun-apm-rails!
22
-
23
- BUNDLED WITH
24
- 2.1.4
data/Rakefile DELETED
@@ -1,16 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rake/testtask"
3
- require 'rdoc/task'
4
-
5
- RDoc::Task.new do |rdoc|
6
- rdoc.main = "README.rdoc"
7
- rdoc.rdoc_files.include("README.rdoc", "lib/raygun/apm/*.rb", "lib/raygun/apm/rails/*.rb")
8
- end
9
-
10
- Rake::TestTask.new(:test) do |t|
11
- t.libs << "test"
12
- t.libs << "lib"
13
- t.test_files = FileList["test/**/*_test.rb"]
14
- end
15
-
16
- task :default => :test