scout_apm 5.3.7 → 5.3.8

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
  SHA256:
3
- metadata.gz: 9a0f837b1786c1e41925b01d4f2c03964c3541bf92666920f0bb8a0ba7cbdb89
4
- data.tar.gz: 050c8858b43539abf92b893f8a1664e448d860fef2a3aa28f03af23e95941dd3
3
+ metadata.gz: 8eb7dc8091eba4caa3dfb078b44636de67c94abc26646c05c14339e77ba0b58a
4
+ data.tar.gz: 7e7a596d825cf2c648470f6e867ea2c5cc3eb9112b813b4b4ca4dcf873a2b98c
5
5
  SHA512:
6
- metadata.gz: 05cf25c9161a0d2e1a5b5a0f5bffd9dfb27d05d9adc17e39a860ff55653c307e7815315b978bc75aa8f7e77fee8ba7a4f57e9a67009472ea40a9f80d02857f47
7
- data.tar.gz: 54198b64b284943f81384fc992f0446e871f8630f4693ecce8d774728cdc20e02d078dc77213496b7b581af73cd7566c224557f319b6134056c32b5975e78041
6
+ metadata.gz: 9964722b976e23fc9a629cdb010079f4781e10764226bb8eeb9d6da4439612d20fe21c9fa13f8e1a7fbe8db268ff15005599d102893ee5ed44388ef686874b44
7
+ data.tar.gz: 1b9a9a0847c9f688fe34068cd68e0cd9d4bcac0e70eb3a59c507a2671d03aa2ac30bb7a8a1eea9f1df6d9ec5e4a4a713046707fe60702ff06b353df634e5cce2
data/CHANGELOG.markdown CHANGED
@@ -1,5 +1,8 @@
1
1
  # Unreleased
2
2
 
3
+ # 5.3.8
4
+ * Avoid inaccurate websocket queue time capturing (#494)
5
+
3
6
  # 5.3.7
4
7
  * Fix parser dependency issue
5
8
 
@@ -15,6 +15,9 @@ module ScoutApm
15
15
 
16
16
  return unless headers
17
17
 
18
+ # When an application uses Turbo Streams, we capture very innaccurate queue times.
19
+ return if request_over_websocket?
20
+
18
21
  raw_start = locate_timestamp
19
22
  return unless raw_start
20
23
 
@@ -38,6 +41,10 @@ module ScoutApm
38
41
 
39
42
  private
40
43
 
44
+ def request_over_websocket?
45
+ headers["Upgrade"] == "websocket"
46
+ end
47
+
41
48
  # Looks through the possible headers with this data, and extracts the raw
42
49
  # value of the header
43
50
  # Returns nil if not found
@@ -1,3 +1,3 @@
1
1
  module ScoutApm
2
- VERSION = "5.3.7"
2
+ VERSION = "5.3.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scout_apm
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.3.7
4
+ version: 5.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derek Haynes
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-02-07 00:00:00.000000000 Z
12
+ date: 2024-04-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest