We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2a16ed commit b1e1c78Copy full SHA for b1e1c78
packages/tracing/src/browser/request.ts
@@ -221,8 +221,6 @@ export function xhrCallback(
221
if (handlerData.endTimestamp && handlerData.xhr.__sentry_xhr_span_id__) {
222
const span = spans[handlerData.xhr.__sentry_xhr_span_id__];
223
if (span) {
224
- span.setData('url', xhr.url);
225
- span.setData('method', xhr.method);
226
span.setHttpStatus(xhr.status_code);
227
span.finish();
228
@@ -239,6 +237,8 @@ export function xhrCallback(
239
237
data: {
240
238
...xhr.data,
241
type: 'xhr',
+ method: xhr.method,
+ url: xhr.url,
242
},
243
description: `${xhr.method} ${xhr.url}`,
244
op: 'http',
0 commit comments