talentbox-newrelic-sequel 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -128,7 +128,8 @@ DependencyDetection.defer do
128
128
  if defined?(SequelRails)
129
129
  ActiveSupport::Notifications.subscribe("sql.sequel") do |*args|
130
130
  event = ActiveSupport::Notifications::Event.new(*args)
131
- ::NewRelic::Agent::Instrumentation::SequelDurationRecorder.record(event.duration, event.payload[:sql])
131
+ duration = (event.end - event.time).to_f
132
+ ::NewRelic::Agent::Instrumentation::SequelDurationRecorder.record(duration, event.payload[:sql])
132
133
  end
133
134
  else
134
135
  ::Sequel::Database.class_eval do
@@ -1,3 +1,3 @@
1
1
  class NewRelicSequel
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: talentbox-newrelic-sequel
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.7
5
+ version: 0.0.8
6
6
  platform: ruby
7
7
  authors:
8
8
  - REA Group
@@ -93,7 +93,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  segments:
95
95
  - 0
96
- hash: 222738805168072993
96
+ hash: -4241728943649576003
97
97
  none: false
98
98
  required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  requirements:
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  version: '0'
103
103
  segments:
104
104
  - 0
105
- hash: 222738805168072993
105
+ hash: -4241728943649576003
106
106
  none: false
107
107
  requirements: []
108
108
  rubyforge_project: