newrelic-moped 0.0.3 → 0.0.4

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.
data/README.md CHANGED
@@ -1,7 +1,17 @@
1
1
  newrelic-moped
2
2
  ==============
3
3
 
4
- Adds New Relic instrumentation to Moped
4
+ Adds New Relic instrumentation to [Moped](http://github.com/mongoid/moped/)
5
5
 
6
6
  Adds support for recording database operations as part of the New Relic web transactions. It does not add data to the
7
- Database view in New Relic, or instrument Active Record activity.
7
+ Database view in New Relic, or instrument Active Record activity.
8
+
9
+ ## Compatibility with rpm_contrib
10
+
11
+ Currently [rpm_contrib](http://github.com/newrelic/rpm_contrib/) includes instrumenation for mongoid 2. You will need to disable this using the `disable_mongoid`
12
+ flag in your `newrelic.yml` to avoid errors.
13
+
14
+ ## Disabling Moped Instrumentation
15
+
16
+ It can be disabled with the `disable_moped` flag in your `newrelic.yml` file.
17
+
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -32,8 +32,9 @@ DependencyDetection.defer do
32
32
  self.class.trace_execution_scoped("Database/#{collection}/#{operation_name}") do
33
33
  t0 = Time.now
34
34
  res = logging_without_newrelic_trace(operations, &blk)
35
- NewRelic::Agent.instance.transaction_sampler.notice_sql(log_statement, nil, (Time.now - t0).to_f)
36
- res
35
+ elapsed_time = (Time.now - t0).to_f
36
+ NewRelic::Agent.instance.transaction_sampler.notice_sql(log_statement, nil, elapsed_time)
37
+ NewRelic::Agent.instance.sql_sampler.notice_sql(log_statement, nil, nil, elapsed_time)
37
38
  end
38
39
  end
39
40
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "newrelic-moped"
8
- s.version = "0.0.3"
8
+ s.version = "0.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Daren Desjardins"]
12
- s.date = "2012-07-30"
12
+ s.date = "2012-10-02"
13
13
  s.description = "Adds support for recording database operations in your web transactions. It does not add data\n to the Database view in New Relic, nor instrument Active Record activity. "
14
14
  s.email = "daren@pipewise.com"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newrelic-moped
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-30 00:00:00.000000000 Z
12
+ date: 2012-10-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: newrelic_rpm
@@ -94,7 +94,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
94
94
  version: '0'
95
95
  segments:
96
96
  - 0
97
- hash: -4060946221931748119
97
+ hash: -557516097962060010
98
98
  required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  none: false
100
100
  requirements: