protocol-http2 0.19.3 → 0.19.4

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: 1fc681846886564561e01287c0c8ac5db0944222c6f94262894fe50ac1d0d2a5
4
- data.tar.gz: 94106491f20c0b6f08fc637ecd46ccab6a38362207f90ddfefb12b02ba901aad
3
+ metadata.gz: b04111afb8bcb89c8866ccd13f1782ab2cd9ccf438210d5da17aecb384d2cf02
4
+ data.tar.gz: 7574a7a9595487e5ad574250e98a6662e5d2c588acffe8536b9d4f642cabfc4b
5
5
  SHA512:
6
- metadata.gz: 6bb39e01cf605b16625a81ba6706b37ec9022c220e3200cea4e8136091842532f9a00b47c76980a36e726401f35eaf22522211e2c567322099512f6a1c472278
7
- data.tar.gz: e2ca6677a9b488a0ec7d4e74ecf1bfb349e496d2e248c60928c27286cfa99c3a5e07a6edf2b957d797c6f374e2e23b2f2ac362b0458594064acf5d9de856c872
6
+ metadata.gz: ec243f9398ad359deb1ca97341d6fca6c563158a40fa7e3617b39af599bb0ebce8c302ef7af3a378b944d1b8ada1689eff8f540e5c274a065fcd2c8420f531af
7
+ data.tar.gz: '08f92272a802133333232cac14b26568fdc5e95b4c0054caec717de403e0a5e22d41d3c2aa57ec08af40de11a75e4f2bb508d1b7b4c480513da81d352d58c072'
checksums.yaml.gz.sig CHANGED
Binary file
@@ -16,6 +16,8 @@ require_relative "goaway_frame"
16
16
  require_relative "window_update_frame"
17
17
  require_relative "continuation_frame"
18
18
 
19
+ require "traces/provider"
20
+
19
21
  module Protocol
20
22
  module HTTP2
21
23
  # HTTP/2 frame type mapping as defined by the spec
@@ -107,6 +109,50 @@ module Protocol
107
109
 
108
110
  raise EOFError, "Could not read frame header!"
109
111
  end
112
+
113
+ Traces::Provider(self) do
114
+ def write_connection_preface
115
+ Traces.trace("protocol.http2.framer.write_connection_preface") do
116
+ super
117
+ end
118
+ end
119
+
120
+ def read_connection_preface
121
+ Traces.trace("protocol.http2.framer.read_connection_preface") do
122
+ super
123
+ end
124
+ end
125
+
126
+ def write_frame(frame)
127
+ attributes = {
128
+ "frame.length" => frame.length,
129
+ "frame.type" => frame.type,
130
+ "frame.flags" => frame.flags,
131
+ "frame.stream_id" => frame.stream_id,
132
+ }
133
+
134
+ Traces.trace("protocol.http2.framer.write_frame", attributes: attributes) do
135
+ super
136
+ end
137
+ end
138
+
139
+ def read_frame(maximum_frame_size = MAXIMUM_ALLOWED_FRAME_SIZE)
140
+ Traces.trace("protocol.http2.framer.read_frame") do |span|
141
+ super.tap do |frame|
142
+ span["frame.length"] = frame.length
143
+ span["frame.type"] = frame.type
144
+ span["frame.flags"] = frame.flags
145
+ span["frame.stream_id"] = frame.stream_id
146
+ end
147
+ end
148
+ end
149
+
150
+ def flush
151
+ Traces.trace("protocol.http2.framer.flush") do
152
+ super
153
+ end
154
+ end
155
+ end
110
156
  end
111
157
  end
112
158
  end
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Protocol
7
7
  module HTTP2
8
- VERSION = "0.19.3"
8
+ VERSION = "0.19.4"
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: protocol-http2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.3
4
+ version: 0.19.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -40,7 +40,7 @@ cert_chain:
40
40
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
41
41
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
42
42
  -----END CERTIFICATE-----
43
- date: 2024-10-02 00:00:00.000000000 Z
43
+ date: 2024-11-03 00:00:00.000000000 Z
44
44
  dependencies:
45
45
  - !ruby/object:Gem::Dependency
46
46
  name: protocol-hpack
@@ -70,6 +70,20 @@ dependencies:
70
70
  - - "~>"
71
71
  - !ruby/object:Gem::Version
72
72
  version: '0.18'
73
+ - !ruby/object:Gem::Dependency
74
+ name: traces
75
+ requirement: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ type: :runtime
81
+ prerelease: false
82
+ version_requirements: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
73
87
  description:
74
88
  email:
75
89
  executables: []
metadata.gz.sig CHANGED
Binary file