overall_request_times 0.4.0 → 0.4.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb138b6a406c2f567301304a0530d968cd405ed8
4
- data.tar.gz: 4321da12b12e59176f796f6d8fee64083c635d4c
3
+ metadata.gz: a88359fad7231f21acf8e61bd40debe33bc7f9be
4
+ data.tar.gz: ab4ec3e028f4e324fe8d72ce28512152d8cef0df
5
5
  SHA512:
6
- metadata.gz: a38f435765b6615ac822710796126835da21a1a1c80a43aa5ce5e9e671bdd46175d346565c9b15c069288854b3bb0056909ecc14513df1c56059b650e9cfa5cf
7
- data.tar.gz: 2e6cfd8375d53cc52e5b78cb6b98d1d9c1381432eb9094af85479b3edb6a3497e84f2094c40ddee5850255de238d905b0f286637a2447dc9da37abbe33733e0a
6
+ metadata.gz: 3543abc8635f44540fb722be6312d2a36c8174a4475a1d61db7c404088a9ab68b45c0c78f339fb8e791b35e13ed6e7c3dc8fef7730c11be8b83146b9358e29ba
7
+ data.tar.gz: f647517b2f00643c96c683184ab2fbb7c352127cb6fa3b6bffe50e6333784d0454ecd5cd8f3f23c3f7eaa5828361be65c7cac34fcd2f60c3ece125e6c74b63f1
@@ -4,11 +4,7 @@ module OverallRequestTimes
4
4
  app.middleware.use OverallRequestTimes::RailsMiddleware
5
5
 
6
6
  ActiveSupport::Notifications.subscribe(/cache_(read|write|delete).active_support/) do |name, start, finish, _id, payload|
7
- duration_in_seconds = finish - start
8
- if duration_in_seconds > 0.005
9
- Rails.logger.info "Cache operation took over 5ms: name:#{name} start:#{start.to_f} finish:#{finish.to_f} payload:#{payload.inspect}"
10
- end
11
- OverallRequestTimes.add_duration(:cache, duration_in_seconds)
7
+ OverallRequestTimes.add_duration(:cache, finish - start)
12
8
  end
13
9
  end
14
10
  end
@@ -1,3 +1,3 @@
1
1
  module OverallRequestTimes
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: overall_request_times
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Donald Plummer