scout_apm 2.1.22 → 2.1.23
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.markdown +5 -0
- data/lib/scout_apm/instruments/mongoid.rb +10 -2
- 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: e5ecf41eb355752c987824cb0e87f1c1eb00d5bf
|
|
4
|
+
data.tar.gz: ba61759eed943727a39273a53799109eab55b96d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6032ba283a3a4f70c18197f03c3ecf3c5cd516c90637a239aca12c2b74f48c6049ac5b292196b29918b2cf55d35d20baf2f8d84b876b9eb52bae1db44f816a73
|
|
7
|
+
data.tar.gz: 6152383f3287c81cac60e02624f53ce792b9b6e978140235094627883529d8e076db1705ea5e1bfa6525cbfef33406099ca5114ecfa671cdee0b2c8ea3eef83e
|
data/CHANGELOG.markdown
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
# 2.1.23
|
|
2
|
+
|
|
3
|
+
* Extend Mongoid instrumentation to 6.x
|
|
4
|
+
|
|
1
5
|
# 2.1.22
|
|
2
6
|
|
|
3
7
|
* Add DevTrace support for newest 4.2.x and 5.x versions of Rails
|
|
@@ -61,6 +65,7 @@
|
|
|
61
65
|
# 2.1.9
|
|
62
66
|
|
|
63
67
|
* Send raw histograms of response time, enabling more accurate 95th %iles
|
|
68
|
+
* Raw histograms are used in Apdex calculations
|
|
64
69
|
* Gzip payloads
|
|
65
70
|
* Fix Mongoid (5.0) + Mongo (2.1) support
|
|
66
71
|
* Initial Delayed Job support
|
|
@@ -32,8 +32,8 @@ module ScoutApm
|
|
|
32
32
|
### See moped instrument for Moped driven deploys
|
|
33
33
|
|
|
34
34
|
### 5.x Mongoid
|
|
35
|
-
if mongoid_v5? && defined?(::Mongoid::Contextual::Mongo)
|
|
36
|
-
ScoutApm::Agent.instance.logger.info "Instrumenting Mongoid 5.x"
|
|
35
|
+
if (mongoid_v5? || mongoid_v6?) && defined?(::Mongoid::Contextual::Mongo)
|
|
36
|
+
ScoutApm::Agent.instance.logger.info "Instrumenting Mongoid 5.x/6.x"
|
|
37
37
|
# All the public methods from Mongoid::Contextual::Mongo.
|
|
38
38
|
# TODO: Geo and MapReduce support (?). They are in other Contextual::* classes
|
|
39
39
|
methods = [
|
|
@@ -99,6 +99,14 @@ module ScoutApm
|
|
|
99
99
|
end
|
|
100
100
|
end
|
|
101
101
|
|
|
102
|
+
def mongoid_v6?
|
|
103
|
+
if defined?(::Mongoid::VERSION)
|
|
104
|
+
::Mongoid::VERSION =~ /\A6/
|
|
105
|
+
else
|
|
106
|
+
false
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
|
|
102
110
|
|
|
103
111
|
# Example of what a filter looks like: => {"founded"=>{"$gte"=>"1980-1-1"}, "name"=>{"$in"=>["Tool", "Deftones", "Melvins"]}}
|
|
104
112
|
# Approach: find every leaf-node, clear it. inspect the whole thing when done.
|
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.1.
|
|
4
|
+
version: 2.1.23
|
|
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: 2017-
|
|
12
|
+
date: 2017-04-05 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: minitest
|