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 +4 -4
- data/CHANGELOG.rdoc +20 -0
- data/Gemfile.lock +2 -2
- data/lib/raygun/apm/rails.rb +26 -0
- data/lib/raygun/apm/rails/middleware.rb +14 -5
- data/lib/raygun/apm/rails/railtie.rb +1 -0
- data/lib/raygun/apm/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc64498b179d7b145223d29d9b29e94efde431f8c34333adff4286356017ffcf
|
4
|
+
data.tar.gz: 69acfefe916b6fa270bbeb931bd62391653c49ef7d5a4b71e6cc681019395293
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf912dd2a346df4d99be75b70495e1312a10bd58873cc34e09529fd8bb6e048b50fc283386be5c47c2d635b44aa1571ef7909439bb5c57e526d4d9e99741dbd2
|
7
|
+
data.tar.gz: 71a277d594986c86de97a72c2dce6e5f1c0ed10ef3c2033fd9dc3a896548db8ea6aea7bb1717817013fe7a5edf6624658ee7632ed76726f3232d63454e01beac
|
data/CHANGELOG.rdoc
CHANGED
@@ -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)
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
raygun-apm-rails (1.0.
|
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.
|
12
|
+
raygun-apm (1.0.38-universal-darwin)
|
13
13
|
|
14
14
|
PLATFORMS
|
15
15
|
ruby
|
data/lib/raygun/apm/rails.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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] =
|
102
|
-
event[:verb] =
|
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
|
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.
|
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-
|
12
|
+
date: 2020-05-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: raygun-apm
|