@@ -84,6 +84,8 @@ const expectedSpans = [
8484 'network.protocol.version' : 'HTTP/1.1' ,
8585 'http.request.method' : 'POST' ,
8686 'url.full' : 'https://js.images.cloudflare.com/transform' ,
87+ 'cloudflare.binding.type' : 'Images' ,
88+ 'cloudflare.images.options.format' : 'image/avif' ,
8789 'http.request.header.content-type' :
8890 'multipart/form-data; boundary=<dynamic>' ,
8991 'http.response.status_code' : 200n ,
@@ -96,6 +98,8 @@ const expectedSpans = [
9698 'network.protocol.version' : 'HTTP/1.1' ,
9799 'http.request.method' : 'POST' ,
98100 'url.full' : 'https://js.images.cloudflare.com/transform' ,
101+ 'cloudflare.binding.type' : 'Images' ,
102+ 'cloudflare.images.options.format' : 'image/avif' ,
99103 'http.request.header.content-type' :
100104 'multipart/form-data; boundary=<dynamic>' ,
101105 'http.response.status_code' : 200n ,
@@ -108,6 +112,9 @@ const expectedSpans = [
108112 'network.protocol.version' : 'HTTP/1.1' ,
109113 'http.request.method' : 'POST' ,
110114 'url.full' : 'https://js.images.cloudflare.com/transform' ,
115+ 'cloudflare.binding.type' : 'Images' ,
116+ 'cloudflare.images.options.format' : 'image/avif' ,
117+ 'cloudflare.images.options.transforms' : '[{"imageIndex":0,"rotate":90}]' ,
111118 'http.request.header.content-type' :
112119 'multipart/form-data; boundary=<dynamic>' ,
113120 'http.response.status_code' : 200n ,
@@ -120,6 +127,9 @@ const expectedSpans = [
120127 'network.protocol.version' : 'HTTP/1.1' ,
121128 'http.request.method' : 'POST' ,
122129 'url.full' : 'https://js.images.cloudflare.com/transform' ,
130+ 'cloudflare.binding.type' : 'Images' ,
131+ 'cloudflare.images.options.format' : 'image/avif' ,
132+ 'cloudflare.images.options.transforms' : '[{"imageIndex":0,"rotate":90}]' ,
123133 'http.request.header.content-type' :
124134 'multipart/form-data; boundary=<dynamic>' ,
125135 'http.response.status_code' : 200n ,
@@ -132,6 +142,8 @@ const expectedSpans = [
132142 'network.protocol.version' : 'HTTP/1.1' ,
133143 'http.request.method' : 'POST' ,
134144 'url.full' : 'https://js.images.cloudflare.com/transform' ,
145+ 'cloudflare.binding.type' : 'Images' ,
146+ 'cloudflare.images.options.format' : 'image/avif' ,
135147 'http.request.header.content-type' :
136148 'multipart/form-data; boundary=<dynamic>' ,
137149 'http.response.status_code' : 200n ,
@@ -144,49 +156,87 @@ const expectedSpans = [
144156 'network.protocol.version' : 'HTTP/1.1' ,
145157 'http.request.method' : 'POST' ,
146158 'url.full' : 'https://js.images.cloudflare.com/transform' ,
159+ 'cloudflare.binding.type' : 'Images' ,
160+ 'cloudflare.images.options.format' : 'image/avif' ,
147161 'http.request.header.content-type' :
148162 'multipart/form-data; boundary=<dynamic>' ,
149163 'http.response.status_code' : 200n ,
150164 'http.response.body.size' : 63n ,
151165 closed : true ,
152166 } ,
153167 {
154- name : 'images_info' ,
168+ name : 'fetch' ,
169+ 'network.protocol.name' : 'http' ,
170+ 'network.protocol.version' : 'HTTP/1.1' ,
171+ 'http.request.method' : 'POST' ,
172+ 'url.full' : 'https://js.images.cloudflare.com/info' ,
155173 'cloudflare.binding.type' : 'Images' ,
156174 'cloudflare.images.options.encoding' : 'base64' ,
157- 'cloudflare.images.result.format' : 'image/png' ,
158175 'cloudflare.images.result.file_size' : 123 ,
159- 'cloudflare.images.result.width ' : 123 ,
176+ 'cloudflare.images.result.format ' : 'image/png' ,
160177 'cloudflare.images.result.height' : 123 ,
178+ 'cloudflare.images.result.width' : 123 ,
179+ 'http.request.header.content-type' :
180+ 'multipart/form-data; boundary=<dynamic>' ,
181+ 'http.response.status_code' : 200n ,
182+ 'http.response.body.size' : 63n ,
161183 closed : true ,
162184 } ,
163185 {
164- name : 'images_info' ,
186+ name : 'fetch' ,
187+ 'network.protocol.name' : 'http' ,
188+ 'network.protocol.version' : 'HTTP/1.1' ,
189+ 'http.request.method' : 'POST' ,
190+ 'url.full' : 'https://js.images.cloudflare.com/info' ,
165191 'cloudflare.binding.type' : 'Images' ,
166192 'cloudflare.images.options.encoding' : 'base64' ,
167- 'cloudflare.images.result.format' : 'image/png' ,
168193 'cloudflare.images.result.file_size' : 123 ,
169- 'cloudflare.images.result.width ' : 123 ,
194+ 'cloudflare.images.result.format ' : 'image/png' ,
170195 'cloudflare.images.result.height' : 123 ,
196+ 'cloudflare.images.result.width' : 123 ,
197+ 'http.request.header.content-type' :
198+ 'multipart/form-data; boundary=<dynamic>' ,
199+ 'http.response.status_code' : 200n ,
200+ 'http.response.body.size' : 63n ,
171201 closed : true ,
172202 } ,
173203 {
174- name : 'images_info' ,
204+ name : 'fetch' ,
205+ 'network.protocol.name' : 'http' ,
206+ 'network.protocol.version' : 'HTTP/1.1' ,
207+ 'http.request.method' : 'POST' ,
208+ 'url.full' : 'https://js.images.cloudflare.com/info' ,
175209 'cloudflare.binding.type' : 'Images' ,
176- 'cloudflare.images.options.encoding' : 'base64' ,
177210 'cloudflare.images.error.code' : '123' ,
211+ 'cloudflare.images.options.encoding' : 'base64' ,
178212 'error.type' : 'ERROR 123: Bad request' ,
213+ 'http.request.header.content-type' :
214+ 'multipart/form-data; boundary=<dynamic>' ,
215+ 'http.response.status_code' : 409n ,
216+ 'http.response.body.size' : 22n ,
179217 closed : true ,
180218 } ,
181219 {
182- name : 'images_info ' ,
220+ name : 'fetch ' ,
183221 'cloudflare.binding.type' : 'Images' ,
184222 'cloudflare.images.options.encoding' : 'base64' ,
185223 'cloudflare.images.result.format' : 'image/svg+xml' ,
224+ 'http.request.header.content-type' :
225+ 'multipart/form-data; boundary=<dynamic>' ,
226+ 'http.request.method' : 'POST' ,
227+ 'http.response.body.size' : 26n ,
228+ 'http.response.status_code' : 200n ,
229+ 'network.protocol.name' : 'http' ,
230+ 'network.protocol.version' : 'HTTP/1.1' ,
231+ 'url.full' : 'https://js.images.cloudflare.com/info' ,
186232 closed : true ,
187233 } ,
188234 {
189235 name : 'fetch' ,
236+ 'cloudflare.binding.type' : 'Images' ,
237+ 'cloudflare.images.options.format' : 'image/avif' ,
238+ 'cloudflare.images.options.transforms' :
239+ '[{"imageIndex":0,"rotate":90},{"imageIndex":1,"rotate":180},{"drawImageIndex":1,"targetImageIndex":0},{"drawImageIndex":3,"targetImageIndex":2},{"imageIndex":2,"rotate":270},{"drawImageIndex":2,"targetImageIndex":0},{"drawImageIndex":4,"targetImageIndex":0}]' ,
190240 'network.protocol.name' : 'http' ,
191241 'network.protocol.version' : 'HTTP/1.1' ,
192242 'http.request.method' : 'POST' ,
@@ -199,6 +249,10 @@ const expectedSpans = [
199249 } ,
200250 {
201251 name : 'fetch' ,
252+ 'cloudflare.binding.type' : 'Images' ,
253+ 'cloudflare.images.options.anim' : true ,
254+ 'cloudflare.images.options.format' : 'image/avif' ,
255+ 'cloudflare.images.options.transforms' : '[{"imageIndex":0,"rotate":90}]' ,
202256 'network.protocol.name' : 'http' ,
203257 'network.protocol.version' : 'HTTP/1.1' ,
204258 'http.request.method' : 'POST' ,
@@ -210,16 +264,25 @@ const expectedSpans = [
210264 closed : true ,
211265 } ,
212266 {
213- name : 'images_output' ,
267+ name : 'fetch' ,
268+ 'network.protocol.name' : 'http' ,
269+ 'network.protocol.version' : 'HTTP/1.1' ,
270+ 'http.request.method' : 'POST' ,
271+ 'url.full' : 'https://js.images.cloudflare.com/transform' ,
214272 'cloudflare.binding.type' : 'Images' ,
215- 'cloudflare.images.options.transforms' : '[{"imageIndex":0,"rotate":90}]' ,
216- 'cloudflare.images.options.format' : 'image/avif' ,
217273 'cloudflare.images.error.code' : '123' ,
274+ 'cloudflare.images.options.format' : 'image/avif' ,
275+ 'cloudflare.images.options.transforms' : '[{"imageIndex":0,"rotate":90}]' ,
218276 'error.type' : 'ERROR 123: Bad request' ,
277+ 'http.request.header.content-type' :
278+ 'multipart/form-data; boundary=<dynamic>' ,
279+ 'http.response.status_code' : 409n ,
280+ 'http.response.body.size' : 22n ,
219281 closed : true ,
220282 } ,
221283 {
222- name : 'fetch' ,
284+ name : 'images_output' ,
285+ 'cloudflare.binding.type' : 'Images' ,
223286 'network.protocol.name' : 'http' ,
224287 'network.protocol.version' : 'HTTP/1.1' ,
225288 'http.request.method' : 'POST' ,
@@ -232,6 +295,7 @@ const expectedSpans = [
232295 } ,
233296 {
234297 name : 'fetch' ,
298+ 'cloudflare.binding.type' : 'Images' ,
235299 'network.protocol.name' : 'http' ,
236300 'network.protocol.version' : 'HTTP/1.1' ,
237301 'http.request.method' : 'POST' ,
0 commit comments