@@ -52,12 +52,29 @@ test('Propagates trace for outgoing http requests', async ({ baseURL }) => {
52
52
53
53
expect ( outboundTransaction . contexts ?. trace ) . toEqual ( {
54
54
data : {
55
+ 'sentry.source' : 'route' ,
56
+ 'sentry.origin' : 'auto.http.otel.http' ,
57
+ 'sentry.op' : 'http.server' ,
58
+ 'sentry.sample_rate' : 1 ,
55
59
url : 'http://localhost:3030/test-outgoing-http' ,
56
60
'otel.kind' : 'SERVER' ,
57
61
'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' ,
61
78
} ,
62
79
op : 'http.server' ,
63
80
span_id : expect . any ( String ) ,
@@ -68,12 +85,28 @@ test('Propagates trace for outgoing http requests', async ({ baseURL }) => {
68
85
69
86
expect ( inboundTransaction . contexts ?. trace ) . toEqual ( {
70
87
data : {
88
+ 'sentry.source' : 'route' ,
89
+ 'sentry.origin' : 'auto.http.otel.http' ,
90
+ 'sentry.op' : 'http.server' ,
91
+ 'sentry.sample_rate' : 1 ,
71
92
url : 'http://localhost:3030/test-inbound-headers' ,
72
93
'otel.kind' : 'SERVER' ,
73
94
'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' ,
77
110
} ,
78
111
op : 'http.server' ,
79
112
parent_span_id : outgoingHttpSpanId ,
@@ -133,12 +166,29 @@ test('Propagates trace for outgoing fetch requests', async ({ baseURL }) => {
133
166
134
167
expect ( outboundTransaction . contexts ?. trace ) . toEqual ( {
135
168
data : {
169
+ 'sentry.source' : 'route' ,
170
+ 'sentry.origin' : 'auto.http.otel.http' ,
171
+ 'sentry.op' : 'http.server' ,
172
+ 'sentry.sample_rate' : 1 ,
136
173
url : 'http://localhost:3030/test-outgoing-fetch' ,
137
174
'otel.kind' : 'SERVER' ,
138
175
'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' ,
142
192
} ,
143
193
op : 'http.server' ,
144
194
span_id : expect . any ( String ) ,
@@ -149,12 +199,28 @@ test('Propagates trace for outgoing fetch requests', async ({ baseURL }) => {
149
199
150
200
expect ( inboundTransaction . contexts ?. trace ) . toEqual ( {
151
201
data : expect . objectContaining ( {
202
+ 'sentry.source' : 'route' ,
203
+ 'sentry.origin' : 'auto.http.otel.http' ,
204
+ 'sentry.op' : 'http.server' ,
205
+ 'sentry.sample_rate' : 1 ,
152
206
url : 'http://localhost:3030/test-inbound-headers' ,
153
207
'otel.kind' : 'SERVER' ,
154
208
'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' ,
158
224
} ) ,
159
225
op : 'http.server' ,
160
226
parent_span_id : outgoingHttpSpanId ,
0 commit comments