scout_apm 2.1.22 → 2.1.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
  SHA1:
3
- metadata.gz: 36b64e82960822e331059ed940c8e357255c3883
4
- data.tar.gz: 6f04ee57e89946210a1cce690fda0178da06ed00
3
+ metadata.gz: e5ecf41eb355752c987824cb0e87f1c1eb00d5bf
4
+ data.tar.gz: ba61759eed943727a39273a53799109eab55b96d
5
5
  SHA512:
6
- metadata.gz: 8bbe4fd93b2767b05096d13a68d530393c8a61399b43105ae0b26ffde043ac41f7b9825eb352510d6a81d4d22f44f9b484e268632c76d39532089a5ba9e763e3
7
- data.tar.gz: 10af6806c69c598167a619b0bbe4e5cc0170502b51a5b70e8cfa0e702d1fc9ded6e761702704421d37e3019ae07f03b0f8539a7fb3eb6b14d98a1c549089dc37
6
+ metadata.gz: 6032ba283a3a4f70c18197f03c3ecf3c5cd516c90637a239aca12c2b74f48c6049ac5b292196b29918b2cf55d35d20baf2f8d84b876b9eb52bae1db44f816a73
7
+ data.tar.gz: 6152383f3287c81cac60e02624f53ce792b9b6e978140235094627883529d8e076db1705ea5e1bfa6525cbfef33406099ca5114ecfa671cdee0b2c8ea3eef83e
@@ -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.
@@ -1,4 +1,4 @@
1
1
  module ScoutApm
2
- VERSION = "2.1.22"
2
+ VERSION = "2.1.23"
3
3
  end
4
4
 
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.22
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-01-30 00:00:00.000000000 Z
12
+ date: 2017-04-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest