raygun-apm-rails 1.0.22 → 1.0.23

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: f02b24c73e81c0e61e03ba065bfcc8ee32e03ca8e5a035734f65aa7f67db986c
4
- data.tar.gz: a0f88c3268b2f082038f44dd28e4af67087d08b56713885cd4f92fe58db12119
3
+ metadata.gz: 9c01afbb158b12686bc5f07ef0898e963c6d7c3419a7fd990bcd19c46081d8ca
4
+ data.tar.gz: 067553cff98ea3b72bb142d69e6877697998f5ad632a5e4b5c2d95fb17e5210c
5
5
  SHA512:
6
- metadata.gz: a103e44784bd63d622633c124d0d073ad860d414add2a46842cc2949620391284fbad5907b24d89e28ca8541756d4ccde779e63f12abd3f1b8ea8f9e0b83c0a7
7
- data.tar.gz: a197d265464e0f65337d480038729878d995b41b86d11fe639656c79e51bfb0d4d7357a8a3e10ef5a3e1c833ad55492333999fe708c4473be31e2bb3db70c2d2
6
+ metadata.gz: fd5dc7e6043bd9bd7923f867d804205fc437aae4f5edfeeee61740ac0915c3bb111b5f6f9d2e1ae864f580f3da99892a883c803065a6d797d14af494eddf6be7
7
+ data.tar.gz: d21f5e5f0e336636aabc9037c938106b981152f092921c582fe210d8f179bfd875cfb1f3cf3a202d59330aa82f612c8751581b0ba3f29fc681bdb0415cf2aea0
data/CHANGELOG.rdoc CHANGED
@@ -1,5 +1,9 @@
1
1
  = Changelog
2
2
 
3
+ == 1.0.23 (March 25, 2020)
4
+
5
+ * Do not cache PID on HTTP IN and SQL event initializers
6
+
3
7
  == 1.0.22 (March 24, 2020)
4
8
 
5
9
  * Fix local variable typo in the Rails middleware
@@ -68,7 +68,14 @@ module Raygun
68
68
  Loofah
69
69
  WebConsole
70
70
  HTTParty
71
- TZinfo
71
+ TZInfo
72
+ Devise
73
+ Marginalia
74
+ FastGettext
75
+ Lograge
76
+ Warden
77
+ Grape
78
+ Mustermann
72
79
  Raygun::Breadcrumbs
73
80
  Raygun::Configuration
74
81
  Raygun::config
@@ -17,7 +17,7 @@ module Raygun
17
17
  def instrument(env)
18
18
  res = nil
19
19
  # Can be nil if we had a fatal error
20
- @tracer ||= Raygun::Apm::Tracer.instance || init_tracer
20
+ @tracer = Raygun::Apm::Tracer.instance || init_tracer
21
21
  if @tracer
22
22
  # For the exceptional HTTP IN handler
23
23
  @request_started = @tracer.now
@@ -95,6 +95,7 @@ module Raygun
95
95
  end
96
96
  req = Rack::Request.new notification.payload[:headers].env
97
97
  event = http_in_event
98
+ event[:pid] = Process.pid
98
99
  event[:url] = req.url
99
100
  event[:verb] = req.request_method
100
101
  event[:status] = notification.payload[:status]
@@ -112,6 +113,7 @@ module Raygun
112
113
  def exceptional_http_in_handler(env, status)
113
114
  req = Rack::Request.new env
114
115
  event = http_in_event
116
+ event[:pid] = Process.pid
115
117
  event[:url] = req.url
116
118
  event[:verb] = req.request_method
117
119
  event[:status] = status
@@ -125,11 +127,7 @@ module Raygun
125
127
  end
126
128
 
127
129
  def http_in_event
128
- @http_in_event ||= begin
129
- event = Raygun::Apm::Event::HttpIn.new
130
- event[:pid] = Process.pid
131
- event
132
- end
130
+ @http_in_event ||= Raygun::Apm::Event::HttpIn.new
133
131
  end
134
132
 
135
133
  def sql_handler(args)
@@ -140,6 +138,7 @@ module Raygun
140
138
  ObjectSpace._id2ref(notification.payload[:connection_id])
141
139
  end
142
140
  event = sql_event
141
+ event[:pid] = Process.pid
143
142
  event[:query] = notification.payload[:sql]
144
143
 
145
144
  # XXX this is hacky
@@ -160,11 +159,7 @@ module Raygun
160
159
  end
161
160
 
162
161
  def sql_event
163
- @sql_event ||= begin
164
- event = Raygun::Apm::Event::Sql.new
165
- event[:pid] = Process.pid
166
- event
167
- end
162
+ @sql_event ||= Raygun::Apm::Event::Sql.new
168
163
  end
169
164
 
170
165
  def Ruby_APM_profiler_trace
@@ -1,7 +1,7 @@
1
1
  module Raygun
2
2
  module Apm
3
3
  module Rails
4
- VERSION = "1.0.22"
4
+ VERSION = "1.0.23"
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.22
4
+ version: 1.0.23
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-03-24 00:00:00.000000000 Z
12
+ date: 2020-03-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: raygun-apm