newrelic-elasticsearch 0.1.1 → 0.1.2

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: 18beaacf7da3c1fec556a50f0487f6b3d8bb4b26
4
- data.tar.gz: 9d8afd3fc8afd9d04797341e4c982ad4ce24c28c
3
+ metadata.gz: 3066767a18763e54c5f8bfbcba170ce1c47d7470
4
+ data.tar.gz: 21c5355934a6e2b8de09ae4e3f8fcdf4d546183f
5
5
  SHA512:
6
- metadata.gz: 8131f25976e1b6caf248c56b5db24cbd16e45b8f2782d3e16ccd8e326603159801841ebada64d6751987670f483996993a6e8e96335b22aea7f1411696634a5b
7
- data.tar.gz: 672befd44e0b0975ed13630170e02accc4a84b7df8a38fdb12038cd27901ea1f28eb36ae87cfcc9aac3435ff194f3a2e8d52dbd2a085958482bcd47717e08332
6
+ metadata.gz: 8d1b7bae4579942e68660cb53ffa8cb27966a651124d2284e4fcbe7103e0d9e4547e2c48c0148f4216f5c86a43cf4151bfe41638291000189809b1bf17e7086c
7
+ data.tar.gz: 196027f6d2006c93cc84ff3c9378a44fdbfc999519a536958291a4a4b06175b6a52c6b67df34323329ca2f8da7634984ff52d6b8daf8353ee001a78d4ceb954a
@@ -23,12 +23,7 @@ DependencyDetection.defer do
23
23
  resolver = NewRelic::ElasticsearchOperationResolver.new(method, path)
24
24
 
25
25
  callback = proc do |result, metric, elapsed|
26
- # conditionally require body with notice_statement
27
- if body && params
28
- statement = body.merge(params)
29
- else
30
- statement = body || params
31
- end
26
+ statement = { body: body, params: params }
32
27
  statement[:scope] = resolver.scope
33
28
  statement[:additional_parameters] = resolver.operands
34
29
 
@@ -1,5 +1,5 @@
1
1
  module NewRelic
2
2
  module Elasticsearch
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newrelic-elasticsearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Prater
@@ -135,4 +135,3 @@ signing_key:
135
135
  specification_version: 4
136
136
  summary: Provides NewRelic datastore instrumentation for Elasticsearch
137
137
  test_files: []
138
- has_rdoc: