activeinsights 1.1.0 → 1.1.2

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
  SHA256:
3
- metadata.gz: e21f51380257d374bfb3f74d006a2123a722ca864bf1e369512fc9e4c6dda903
4
- data.tar.gz: bbe3b3f8ce4ead3694eaa95b4ac6fde74dff9eea40cbd5ae26adc79bb690393b
3
+ metadata.gz: 3567672d500efcb013d6ee2263f1d96572e1aa8e582e2fb6888b181bb98d5013
4
+ data.tar.gz: f3616dadb688c55d558c4bdcd9ba4ffb4f69c63c74907a9af4290afc6fbb9820
5
5
  SHA512:
6
- metadata.gz: 5508290b981d052175899002bd7cc9b7a4e3793d84ac01ced88a524fd25bf5442545607e28989c25fc9cf31c2c9e898cc1c9f73e92e4f6c811c332064f7649a1
7
- data.tar.gz: 497aa561b86eb8b1fbc7f930dde745b009dafcb447f37339b8747c19a56888ebd0f60b433b3a8f2fe3f07317c588b52405a74feb00e9ab0ec6035f39433a4daf
6
+ metadata.gz: 4d8b2237cdf9eb7611d850d2636b241d832d52fbf580f2cfc9548f00f5ecc379de81848018e265f5a95995451c423408edfec20af657ef4803d8789f85545d15
7
+ data.tar.gz: 278d789ece207a373929367a63a2d12f635aa27ca94ddfabbe7c966e6db174733dd0f79b3ac8e9c2126a68da3a5068ea84acb087370024359c42b5fd2a1ad454
@@ -11,7 +11,7 @@ module ActiveInsights
11
11
  end
12
12
 
13
13
  def percentage(others)
14
- (parsed_durations.sum / others.flat_map(&:parsed_durations).sum) * 100.0
14
+ (agony / others.sum(&:agony)) * 100.0
15
15
  end
16
16
  end
17
17
  end
@@ -50,7 +50,7 @@
50
50
  <tr>
51
51
  <td><%= link_to model.formatted_controller, controller_p_values_path(@date.first.to_date, model.formatted_controller) %></td>
52
52
  <td><%= per_minute(model.parsed_durations.size, (@date.last - @date.first).seconds) %></td>
53
- <td><%= number_to_percentage model.percentage(@requests.excluding(model)), precision: 1 %></td>
53
+ <td><%= number_to_percentage model.percentage(@requests), precision: 1 %></td>
54
54
  <td><%= model.p50 %> ms</td>
55
55
  <td><%= model.p95 %> ms</td>
56
56
  <td><%= model.p99 %> ms</td>
@@ -42,7 +42,7 @@ module ActiveInsights
42
42
  !ActiveInsights.enabled?
43
43
 
44
44
  Thread.new do
45
- ActiveRecord::Base.lease_connection do
45
+ ActiveRecord::Base.connection_pool.with_connection do
46
46
  ActiveInsights::Request.
47
47
  setup(started, finished, unique_id, payload)
48
48
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveInsights
4
- VERSION = "1.1.0"
4
+ VERSION = "1.1.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeinsights
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Pezza
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-03 00:00:00.000000000 Z
11
+ date: 2024-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chartkick