raygun-apm-rails 1.0.26 → 1.0.31

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: ea19cac93bd012f421b23f6566a719ae71dcfb262a9a6cf96f61296b954802d4
4
- data.tar.gz: c890e8d2b6c63ed3e5c17e738b4b441f578d505a4fb38024170a25fbb7e1a3d5
3
+ metadata.gz: cc64498b179d7b145223d29d9b29e94efde431f8c34333adff4286356017ffcf
4
+ data.tar.gz: 69acfefe916b6fa270bbeb931bd62391653c49ef7d5a4b71e6cc681019395293
5
5
  SHA512:
6
- metadata.gz: bbe0aad99e51cb252e65e2527f0028cdb77836338c76974eae4e79de3fb23823c469e2f06c98d174c47cb715d41c40588d97645bd236e107e1a4af643d9c5a67
7
- data.tar.gz: da7d18ae333c183b4efac77cad8358c2a8f1f091bf584654605f8055eb11d8024ed6843dd207944ad5292729784a903bf60ca5cb5323547f2392c51229551e3b
6
+ metadata.gz: bf912dd2a346df4d99be75b70495e1312a10bd58873cc34e09529fd8bb6e048b50fc283386be5c47c2d635b44aa1571ef7909439bb5c57e526d4d9e99741dbd2
7
+ data.tar.gz: 71a277d594986c86de97a72c2dce6e5f1c0ed10ef3c2033fd9dc3a896548db8ea6aea7bb1717817013fe7a5edf6624658ee7632ed76726f3232d63454e01beac
@@ -1,5 +1,25 @@
1
1
  = Changelog
2
2
 
3
+ == 1.0.31 (May 17, 2020)
4
+
5
+ * Remove the Tracer#process_started callback (set on begin transaction command now)
6
+
7
+ == 1.0.30 (May 15, 2020)
8
+
9
+ * Introduce support for Redis as client adapter
10
+
11
+ == 1.0.29 (May 3, 2020)
12
+
13
+ * Blacklist a new set of methods injected at runtime by Rails which leads to messy traces
14
+
15
+ == 1.0.28 (April 11, 2020)
16
+
17
+ * Prefer local variables to Rack::Request methods for event value assignment (Rails 4)
18
+
19
+ == 1.0.27 (April 11, 2020)
20
+
21
+ * Restore Rails 4 support with caveat that HTTP IN paths are not fully qualified with protocol, host and port
22
+
3
23
  == 1.0.26 (April 11, 2020)
4
24
 
5
25
  * Remove Rails 4 support (no headers element in the notifications hash for HTTP in)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- raygun-apm-rails (1.0.24)
4
+ raygun-apm-rails (1.0.31)
5
5
  raygun-apm (~> 1.0.15)
6
6
 
7
7
  GEM
@@ -9,7 +9,7 @@ GEM
9
9
  specs:
10
10
  minitest (5.13.0)
11
11
  rake (10.5.0)
12
- raygun-apm (1.0.23-universal-darwin)
12
+ raygun-apm (1.0.38-universal-darwin)
13
13
 
14
14
  PLATFORMS
15
15
  ruby
@@ -83,6 +83,32 @@ module Raygun
83
83
  +Raygun::Apm::Rails::Middleware::Ruby_APM_profiler_trace
84
84
  +Raygun::Apm::Rails::Middleware::Ruby_APM_request_error
85
85
  +Raygun::track_exception
86
+ WebpackHelper
87
+ Ripper
88
+ Webpack
89
+ AfterCommitQueue
90
+ Hamlit
91
+ __callbacks
92
+ _reflections
93
+ attribute_aliases
94
+ default_scope_override
95
+ _routes
96
+ table_name_prefix
97
+ _validators
98
+ attribute_type_decorations
99
+ middleware_stack
100
+ _helpers
101
+ _layout
102
+ updated_at_before_type_cast
103
+ created_at_before_type_cast
104
+ _include_layout?
105
+ after_remove_for_
106
+ before_remove_for_
107
+ before_add_for_
108
+ after_add_for_
109
+ autosave_associated_records_for_
110
+ validate_associated_records_for_
111
+ will_save_change_to_
86
112
  }
87
113
 
88
114
  def self.raygun4ruby?
@@ -49,7 +49,10 @@ module Raygun
49
49
  end
50
50
  end
51
51
  # Can be nil if we had a fatal error
52
- @tracer.end_trace if @tracer
52
+ if @tracer
53
+ @tracer.end_trace
54
+ @tracer.diagnostics if ENV['PROTON_DIAGNOSTICS']
55
+ end
53
56
  raise exception if exception
54
57
  res
55
58
  rescue Raygun::Apm::FatalError => e
@@ -59,7 +62,6 @@ module Raygun
59
62
  def init_tracer
60
63
  tracer = Raygun::Apm::Tracer.new
61
64
  tracer.udp_sink!
62
- tracer.process_started
63
65
  ObjectSpace.define_finalizer(self, self.class.finalize(tracer))
64
66
 
65
67
  ActiveSupport::Notifications.unsubscribe(@http_in_subscriber) if @http_in_subscriber
@@ -95,11 +97,18 @@ module Raygun
95
97
  if notification.payload[:exception]
96
98
  return
97
99
  end
98
- req = Rack::Request.new notification.payload[:headers].env
100
+ if headers = notification.payload[:headers]
101
+ req = Rack::Request.new headers.env
102
+ url = req.url
103
+ verb = req.request_method
104
+ else
105
+ url = notification.payload[:path]
106
+ verb = notification.payload[:method].to_s.upcase
107
+ end
99
108
  event = http_in_event
100
109
  event[:pid] = Process.pid
101
- event[:url] = req.url
102
- event[:verb] = req.request_method
110
+ event[:url] = url
111
+ event[:verb] = verb
103
112
  event[:status] = notification.payload[:status]
104
113
  # XXX constant milliseconds to microseconds
105
114
  event[:duration] = notification.duration * 1000
@@ -13,6 +13,7 @@ module Raygun
13
13
  app.middleware.use Raygun::Apm::Rails::Middleware
14
14
  # Explictly enable instrumenting HTTP until a good control API is figured out
15
15
  require "raygun/apm/hooks/net_http"
16
+ require "raygun/apm/hooks/redis" if defined?(Redis::Client)
16
17
  end
17
18
  end
18
19
  end
@@ -1,7 +1,7 @@
1
1
  module Raygun
2
2
  module Apm
3
3
  module Rails
4
- VERSION = "1.0.26"
4
+ VERSION = "1.0.31"
5
5
  end
6
6
  end
7
7
  end
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.26
4
+ version: 1.0.31
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-04-11 00:00:00.000000000 Z
12
+ date: 2020-05-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: raygun-apm