async-http 0.82.2 → 0.82.3

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: ba3cc6cc766d5f45b1480cfaa887ffc1871b7929b679ad49185eb81cfc3f1eb8
4
- data.tar.gz: 230f4aee8068ed5fe0a2059111f462eeda6278fdd3354c092c5631487a96daa3
3
+ metadata.gz: 34b971dd39f2aeab82cdca2bdb30c6d51a8c05b920933e5daf8e5525a60b2362
4
+ data.tar.gz: 53d7cfbb2541b3d138198d2ab976e59b10709fb048c3cdaf9e371f21aeb8ae57
5
5
  SHA512:
6
- metadata.gz: 4b754907b1cf5907481470edb66a6f0d9528ab52f5cddddffdaf7cf61fd17cb6ae8a01629d80e54bfd02ab0469cbc8a14073131be9b0da3f2b443d94ff00e476
7
- data.tar.gz: c9a55134034af4597e19b317ef42f62f5edc377d5b8a90c1de19a3c3f713ed2c120a939c4cd84c3758de0935e1e6b65a28347db228ed2393925c773bdfff258b
6
+ metadata.gz: 20bdd7ab4ebf36833e1e05542dbe8288534fd37963a7ad25552b35a2dc8cb1dd08729eaa38dda1bcec084e4534105231a5901af99cf0f28f4a65621315bcfd5a
7
+ data.tar.gz: 8e6d0f0e569ad1f37f50265231f2056099eacdd8f9a7a17bffff3f894f5fa50531a32a483ca11d5ff5d5d50c47cfbea4e31825319e4b7438a026df21cdb9e4d8
checksums.yaml.gz.sig CHANGED
Binary file
@@ -5,6 +5,8 @@
5
5
 
6
6
  require_relative "connection"
7
7
 
8
+ require "traces/provider"
9
+
8
10
  module Async
9
11
  module HTTP
10
12
  module Protocol
@@ -79,6 +81,20 @@ module Async
79
81
  self.close(error)
80
82
  raise
81
83
  end
84
+
85
+ Traces::Provider(self) do
86
+ def write_request(...)
87
+ Traces.trace("async.http.protocol.http1.client.write_request") do
88
+ super
89
+ end
90
+ end
91
+
92
+ def read_response(...)
93
+ Traces.trace("async.http.protocol.http1.client.read_response") do
94
+ super
95
+ end
96
+ end
97
+ end
82
98
  end
83
99
  end
84
100
  end
@@ -6,6 +6,7 @@
6
6
  require_relative "connection"
7
7
  require_relative "response"
8
8
 
9
+ require "traces/provider"
9
10
  require "protocol/http2/client"
10
11
 
11
12
  module Async
@@ -34,10 +35,32 @@ module Async
34
35
  @count += 1
35
36
 
36
37
  response = create_response
38
+ write_request(response, request)
39
+ read_response(response)
40
+
41
+ return response
42
+ end
43
+
44
+ def write_request(response, request)
37
45
  response.send_request(request)
46
+ end
47
+
48
+ def read_response(response)
38
49
  response.wait
50
+ end
51
+
52
+ Traces::Provider(self) do
53
+ def write_request(...)
54
+ Traces.trace("async.http.protocol.http2.client.write_request") do
55
+ super
56
+ end
57
+ end
39
58
 
40
- return response
59
+ def read_response(...)
60
+ Traces.trace("async.http.protocol.http2.client.read_response") do
61
+ super
62
+ end
63
+ end
41
64
  end
42
65
  end
43
66
  end
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Async
7
7
  module HTTP
8
- VERSION = "0.82.2"
8
+ VERSION = "0.82.3"
9
9
  end
10
10
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.82.2
4
+ version: 0.82.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -58,7 +58,7 @@ cert_chain:
58
58
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
59
59
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
60
60
  -----END CERTIFICATE-----
61
- date: 2024-10-22 00:00:00.000000000 Z
61
+ date: 2024-11-03 00:00:00.000000000 Z
62
62
  dependencies:
63
63
  - !ruby/object:Gem::Dependency
64
64
  name: async
metadata.gz.sig CHANGED
Binary file