scout_apm 2.4.23 → 2.4.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.markdown +4 -0
- data/lib/scout_apm/instruments/action_view.rb +8 -5
- data/lib/scout_apm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3876e11520a259f36044e5363edcb5aeeb4b21fa
|
4
|
+
data.tar.gz: cc1b0079ab39e11f40a864c49ef2fbe47047b186
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d027fd21baa97648867063ec267c53f1dab7cf1060c5f13a9c69f1ce70b89a78465fe0fdda20ddc4d44ea6b281c5673f3661fb0cb7f3b34982e4081e45041942
|
7
|
+
data.tar.gz: aee3351685dc70a95857ffc63bc8dfad81e6414ddb53146eaca3483fc0bd94ef29024da47079f62bc1d568cbc979afc20d6f960fa53e25b123136202fd10badd
|
data/CHANGELOG.markdown
CHANGED
@@ -3,11 +3,12 @@
|
|
3
3
|
#
|
4
4
|
# The prepend version was added for Rails 6 support - ActiveRecord prepends on
|
5
5
|
# top of PartialRenderer#collection_with_template, which can (and does) cause
|
6
|
-
# infinite loops with our alias_method approach
|
6
|
+
# infinite loops with our alias_method approach.
|
7
|
+
#
|
8
|
+
# Even though Rails 6 forced us to use a prepend version, it is now used for
|
9
|
+
# all Rubies that support it.
|
7
10
|
module ScoutApm
|
8
11
|
module Instruments
|
9
|
-
# Instrumentation for Rails 3, 4, 5 is the same, using tracer.
|
10
|
-
# Rails 6 switches to using Module#prepend
|
11
12
|
class ActionView
|
12
13
|
attr_reader :context
|
13
14
|
|
@@ -25,8 +26,7 @@ module ScoutApm
|
|
25
26
|
end
|
26
27
|
|
27
28
|
def prependable?
|
28
|
-
|
29
|
-
false
|
29
|
+
context.environment.supports_module_prepend?
|
30
30
|
end
|
31
31
|
|
32
32
|
def install
|
@@ -79,6 +79,7 @@ module ScoutApm
|
|
79
79
|
req = ScoutApm::RequestManager.lookup
|
80
80
|
|
81
81
|
template_name = @template.virtual_path rescue "Unknown Partial"
|
82
|
+
template_name ||= "Unknown Partial"
|
82
83
|
layer_name = template_name + "/Rendering"
|
83
84
|
|
84
85
|
layer = ScoutApm::Layer.new("View", layer_name)
|
@@ -96,6 +97,7 @@ module ScoutApm
|
|
96
97
|
req = ScoutApm::RequestManager.lookup
|
97
98
|
|
98
99
|
template_name = @template.virtual_path rescue "Unknown Collection"
|
100
|
+
template_name ||= "Unknown Collection"
|
99
101
|
layer_name = template_name + "/Rendering"
|
100
102
|
|
101
103
|
layer = ScoutApm::Layer.new("View", layer_name)
|
@@ -115,6 +117,7 @@ module ScoutApm
|
|
115
117
|
req = ScoutApm::RequestManager.lookup
|
116
118
|
|
117
119
|
template_name = args[0].virtual_path rescue "Unknown"
|
120
|
+
template_name ||= "Unknown"
|
118
121
|
layer_name = template_name + "/Rendering"
|
119
122
|
|
120
123
|
layer = ScoutApm::Layer.new("View", layer_name)
|
data/lib/scout_apm/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scout_apm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derek Haynes
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-03-
|
12
|
+
date: 2019-03-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|