@@ -60,12 +60,29 @@ test('Propagates trace for outgoing http requests', async ({ baseURL }) => {
6060 contexts : expect . objectContaining ( {
6161 trace : {
6262 data : {
63- url : 'http://localhost:3030/test-outgoing-http' ,
64- 'otel.kind' : 'SERVER' ,
63+ 'http.flavor' : '1.1' ,
64+ 'http.host' : 'localhost:3030' ,
65+ 'http.method' : 'GET' ,
6566 'http.response.status_code' : 200 ,
67+ 'http.route' : '/test-outgoing-http' ,
68+ 'http.scheme' : 'http' ,
69+ 'http.status_code' : 200 ,
70+ 'http.status_text' : 'OK' ,
71+ 'http.target' : '/test-outgoing-http' ,
72+ 'http.url' : 'http://localhost:3030/test-outgoing-http' ,
73+ 'http.user_agent' : 'axios/1.6.7' ,
74+ 'net.host.ip' : '::1' ,
75+ 'net.host.name' : 'localhost' ,
76+ 'net.host.port' : 3030 ,
77+ 'net.peer.ip' : '::1' ,
78+ 'net.peer.port' : 35152 ,
79+ 'net.transport' : 'ip_tcp' ,
80+ 'otel.kind' : 'SERVER' ,
6681 'sentry.op' : 'http.server' ,
6782 'sentry.origin' : 'auto.http.otel.http' ,
83+ 'sentry.sample_rate' : 1 ,
6884 'sentry.source' : 'route' ,
85+ url : 'http://localhost:3030/test-outgoing-http' ,
6986 } ,
7087 op : 'http.server' ,
7188 span_id : expect . any ( String ) ,
@@ -159,12 +176,29 @@ test('Propagates trace for outgoing fetch requests', async ({ baseURL }) => {
159176 contexts : expect . objectContaining ( {
160177 trace : {
161178 data : {
162- url : 'http://localhost:3030/test-outgoing-fetch' ,
163- 'otel.kind' : 'SERVER' ,
179+ 'http.flavor' : '1.1' ,
180+ 'http.host' : 'localhost:3030' ,
181+ 'http.method' : 'GET' ,
164182 'http.response.status_code' : 200 ,
183+ 'http.route' : '/test-outgoing-fetch' ,
184+ 'http.scheme' : 'http' ,
185+ 'http.status_code' : 200 ,
186+ 'http.status_text' : 'OK' ,
187+ 'http.target' : '/test-outgoing-fetch' ,
188+ 'http.url' : 'http://localhost:3030/test-outgoing-fetch' ,
189+ 'http.user_agent' : 'axios/1.6.7' ,
190+ 'net.host.ip' : '::1' ,
191+ 'net.host.name' : 'localhost' ,
192+ 'net.host.port' : 3030 ,
193+ 'net.peer.ip' : '::1' ,
194+ 'net.peer.port' : 40084 ,
195+ 'net.transport' : 'ip_tcp' ,
196+ 'otel.kind' : 'SERVER' ,
165197 'sentry.op' : 'http.server' ,
166198 'sentry.origin' : 'auto.http.otel.http' ,
199+ 'sentry.sample_rate' : 1 ,
167200 'sentry.source' : 'route' ,
201+ url : 'http://localhost:3030/test-outgoing-fetch' ,
168202 } ,
169203 op : 'http.server' ,
170204 span_id : expect . any ( String ) ,
0 commit comments