@@ -52,12 +52,29 @@ test('Propagates trace for outgoing http requests', async ({ baseURL }) => {
5252
5353 expect ( outboundTransaction . contexts ?. trace ) . toEqual ( {
5454 data : {
55+ 'sentry.source' : 'route' ,
56+ 'sentry.origin' : 'auto.http.otel.http' ,
57+ 'sentry.op' : 'http.server' ,
58+ 'sentry.sample_rate' : 1 ,
5559 url : 'http://localhost:3030/test-outgoing-http' ,
5660 'otel.kind' : 'SERVER' ,
5761 'http.response.status_code' : 200 ,
58- 'sentry.op' : 'http.server' ,
59- 'sentry.origin' : 'auto.http.otel.http' ,
60- 'sentry.source' : 'route' ,
62+ 'http.url' : 'http://localhost:3030/test-outgoing-http' ,
63+ 'http.host' : 'localhost:3030' ,
64+ 'net.host.name' : 'localhost' ,
65+ 'http.method' : 'GET' ,
66+ 'http.scheme' : 'http' ,
67+ 'http.target' : '/test-outgoing-http' ,
68+ 'http.user_agent' : 'axios/1.6.7' ,
69+ 'http.flavor' : '1.1' ,
70+ 'net.transport' : 'ip_tcp' ,
71+ 'net.host.ip' : expect . any ( String ) ,
72+ 'net.host.port' : expect . any ( Number ) ,
73+ 'net.peer.ip' : expect . any ( String ) ,
74+ 'net.peer.port' : expect . any ( Number ) ,
75+ 'http.status_code' : 200 ,
76+ 'http.status_text' : 'OK' ,
77+ 'http.route' : '/test-outgoing-http' ,
6178 } ,
6279 op : 'http.server' ,
6380 span_id : expect . any ( String ) ,
@@ -68,12 +85,28 @@ test('Propagates trace for outgoing http requests', async ({ baseURL }) => {
6885
6986 expect ( inboundTransaction . contexts ?. trace ) . toEqual ( {
7087 data : {
88+ 'sentry.source' : 'route' ,
89+ 'sentry.origin' : 'auto.http.otel.http' ,
90+ 'sentry.op' : 'http.server' ,
91+ 'sentry.sample_rate' : 1 ,
7192 url : 'http://localhost:3030/test-inbound-headers' ,
7293 'otel.kind' : 'SERVER' ,
7394 'http.response.status_code' : 200 ,
74- 'sentry.op' : 'http.server' ,
75- 'sentry.origin' : 'auto.http.otel.http' ,
76- 'sentry.source' : 'route' ,
95+ 'http.url' : 'http://localhost:3030/test-inbound-headers' ,
96+ 'http.host' : 'localhost:3030' ,
97+ 'net.host.name' : 'localhost' ,
98+ 'http.method' : 'GET' ,
99+ 'http.scheme' : 'http' ,
100+ 'http.target' : '/test-inbound-headers' ,
101+ 'http.flavor' : '1.1' ,
102+ 'net.transport' : 'ip_tcp' ,
103+ 'net.host.ip' : expect . any ( String ) ,
104+ 'net.host.port' : expect . any ( Number ) ,
105+ 'net.peer.ip' : expect . any ( String ) ,
106+ 'net.peer.port' : expect . any ( Number ) ,
107+ 'http.status_code' : 200 ,
108+ 'http.status_text' : 'OK' ,
109+ 'http.route' : '/test-inbound-headers' ,
77110 } ,
78111 op : 'http.server' ,
79112 parent_span_id : outgoingHttpSpanId ,
@@ -133,12 +166,29 @@ test('Propagates trace for outgoing fetch requests', async ({ baseURL }) => {
133166
134167 expect ( outboundTransaction . contexts ?. trace ) . toEqual ( {
135168 data : {
169+ 'sentry.source' : 'route' ,
170+ 'sentry.origin' : 'auto.http.otel.http' ,
171+ 'sentry.op' : 'http.server' ,
172+ 'sentry.sample_rate' : 1 ,
136173 url : 'http://localhost:3030/test-outgoing-fetch' ,
137174 'otel.kind' : 'SERVER' ,
138175 'http.response.status_code' : 200 ,
139- 'sentry.op' : 'http.server' ,
140- 'sentry.origin' : 'auto.http.otel.http' ,
141- 'sentry.source' : 'route' ,
176+ 'http.url' : 'http://localhost:3030/test-outgoing-fetch' ,
177+ 'http.host' : 'localhost:3030' ,
178+ 'net.host.name' : 'localhost' ,
179+ 'http.method' : 'GET' ,
180+ 'http.scheme' : 'http' ,
181+ 'http.target' : '/test-outgoing-fetch' ,
182+ 'http.user_agent' : 'axios/1.6.7' ,
183+ 'http.flavor' : '1.1' ,
184+ 'net.transport' : 'ip_tcp' ,
185+ 'net.host.ip' : expect . any ( String ) ,
186+ 'net.host.port' : expect . any ( Number ) ,
187+ 'net.peer.ip' : expect . any ( String ) ,
188+ 'net.peer.port' : expect . any ( Number ) ,
189+ 'http.status_code' : 200 ,
190+ 'http.status_text' : 'OK' ,
191+ 'http.route' : '/test-outgoing-fetch' ,
142192 } ,
143193 op : 'http.server' ,
144194 span_id : expect . any ( String ) ,
@@ -149,12 +199,28 @@ test('Propagates trace for outgoing fetch requests', async ({ baseURL }) => {
149199
150200 expect ( inboundTransaction . contexts ?. trace ) . toEqual ( {
151201 data : expect . objectContaining ( {
202+ 'sentry.source' : 'route' ,
203+ 'sentry.origin' : 'auto.http.otel.http' ,
204+ 'sentry.op' : 'http.server' ,
205+ 'sentry.sample_rate' : 1 ,
152206 url : 'http://localhost:3030/test-inbound-headers' ,
153207 'otel.kind' : 'SERVER' ,
154208 'http.response.status_code' : 200 ,
155- 'sentry.op' : 'http.server' ,
156- 'sentry.origin' : 'auto.http.otel.http' ,
157- 'sentry.source' : 'route' ,
209+ 'http.url' : 'http://localhost:3030/test-inbound-headers' ,
210+ 'http.host' : 'localhost:3030' ,
211+ 'net.host.name' : 'localhost' ,
212+ 'http.method' : 'GET' ,
213+ 'http.scheme' : 'http' ,
214+ 'http.target' : '/test-inbound-headers' ,
215+ 'http.flavor' : '1.1' ,
216+ 'net.transport' : 'ip_tcp' ,
217+ 'net.host.ip' : expect . any ( String ) ,
218+ 'net.host.port' : expect . any ( Number ) ,
219+ 'net.peer.ip' : expect . any ( String ) ,
220+ 'net.peer.port' : expect . any ( Number ) ,
221+ 'http.status_code' : 200 ,
222+ 'http.status_text' : 'OK' ,
223+ 'http.route' : '/test-inbound-headers' ,
158224 } ) ,
159225 op : 'http.server' ,
160226 parent_span_id : outgoingHttpSpanId ,
0 commit comments